---
title: "COBOL: Alphanumeric, Numeric, Decimal Move Statements"
description: "COBOL example syntax for move statements for Alpha, Numeric and Decimal"
url: https://srinimf.com/2015/07/10/cobol-move-alphanumeric-move-numeric-move-decimal-move/
date: 2015-07-10
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2021/08/pexels-photo-461064.jpeg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["COBOL Tips and Tricks"]
type: post
lang: en
---

# COBOL: Alphanumeric, Numeric, Decimal Move Statements

MOVE is COBOL reserved word. The Simple syntax for MOVE is:

```
MOVE {identifier-1 | literal-1} TO identifier-2 ..
```

Related[COBOL: Assumed Decimal Vs Dot](https://srinimf.com/2018/07/27/cobol-real-answer-on-assumed-decimal-vs-dot/)

## Subscribe to Get blog posts to your email box.

Type your email…

Subscribe

Related[COBOL Picture clause Characters](https://srinimf.com/2015/12/16/complete-list-of-cobol-picture-clause-charecters/)

## Top Benefits of COBOL ‘MOVE’ Reserved Word

- We can move a smaller field to a bigger field
- We **cannot move** a bigger field to a smaller field. If so, the value will be truncated.

Related[Editing Vs Decimal Data types: Top COBOL Move Statements](https://srinimf.com/2015/12/29/one-check-list-for-cobol-tricky-move-statements/)

### #1: [How to](https://srinimf.com/2011/10/06/db2-spufi-comparison-timestamp/) Move Alphanumeric Value

```
01 var-1 pic x(10) value ‘RAMANA’
01 var-2 pix x(10).
MOVE var-1 to var-2.
```

Result in var-2=> ‘RAMANA’

### #2: How to Move Numeric Value

Example-1

```
01 var-1 pic x(10) value ‘1234’
01 var-2 pix x(10).
   MOVE var-1 to var-2.
```

Result in var-2=> ‘1234’

Example-2

```
01 var-1 pic 9(10) value 1234
01 var-2 pix 9(10).
   MOVE var-1 to var-2.
```

Result in var-2=> ‘0000001234’

### #3: How to Move Decimal Value

```
01 var-1  pic 9(4)v9(2) value 1234.56
01 var-2  pix 9(4)v9(2).
   MOVE var-1 to var-2.
```

Result in var-2 =>123456

**[How de](https://srinimf.com/2015/09/29/how-de-editing-works-in-cobol-85/)cimal move happens**

```
1234.56
Before point => Right to left         1<<2<<3<<4
After point ==>Left to right         5>>6
```

**Notes on MOVE statement**

- Use Value clauses to initialize fields in working storage whenever that’s possible.
- Use **Move or Initialize statements to re-initialize fields whenever that’s necessary**.
- Don’t use Initialize statements to initialize large tables or record descriptions that don’t need to be initialized.

Related Posts

- [Editing Vs Decimal Data types: Top COBOL Move Statements](https://srinimf.com/2015/12/29/one-check-list-for-cobol-tricky-move-statements/)DateDecember 29, 2015
- [COBOL Moving Decimal to Numeric Best Example](https://srinimf.com/2016/02/09/cobol-solution-decimal-move-to-numeric/)DateFebruary 9, 2016
- [19 Top COBOL Performance Tuning Ideas](https://srinimf.com/2017/01/07/the-19-best-informative-cobol-really-useful-tuning-tips/)DateJanuary 7, 2017

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2015%2F07%2F10%2Fcobol-move-alphanumeric-move-numeric-move-decimal-move%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2021%2F08%2Fpexels-photo-461064.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=COBOL%3A%20Alphanumeric%2C%20Numeric%2C%20Decimal%20Move%20Statements)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2015/07/10/cobol-move-alphanumeric-move-numeric-move-decimal-move/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2015/07/10/cobol-move-alphanumeric-move-numeric-move-decimal-move/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2015/07/10/cobol-move-alphanumeric-move-numeric-move-decimal-move/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2015/07/10/cobol-move-alphanumeric-move-numeric-move-decimal-move/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20COBOL%3A%20Alphanumeric%2C%20Numeric%2C%20Decimal%20Move%20Statements&body=https%3A%2F%2Fsrinimf.com%2F2015%2F07%2F10%2Fcobol-move-alphanumeric-move-numeric-move-decimal-move%2F&share=email)
-

### Like this:

Like Loading…
