View previous topic :: View next topic
|
Author |
Message |
anandbiradar
New User
Joined: 03 May 2010 Posts: 2 Location: Hyderabad
|
|
|
|
I have a variable declared as below
01 Variable
05 a Pic x(5)
05 b Pic 9(5)
05 c Pic 9(5) Comp-3
05 d Pic 9(5) Comp
Move zeroes to Variable.
Add 1 to c
gives a abend where as
Move zeroes to C
Add 1 to c
is working fine.
If my results are correct, Can some body explain me the difference between moving zeroes in a group and moving it individually |
|
Back to top |
|
|
Mathiv Anan
Active User
Joined: 23 Jul 2008 Posts: 106 Location: USA
|
|
|
|
Please refer to the manual links at the top of the page.
This post should help you. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Can some body explain me the difference between moving zeroes in a group and moving it individually |
Yes, as Mathiv mentioned, the manuals can explain this quite well. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
About Group moves the Enterprise COBOL for z/OS V4.2 Language Reference wrote: |
A group move is treated as though it were an alphanumeric-to-alphanumeric elementary move, except that there is no conversion of data from one form of internal representation to another. In a group move, the receiving area is filled without consideration for the individual elementary items contained within either the sending area or the receiving area.. |
. |
|
Back to top |
|
|
anandbiradar
New User
Joined: 03 May 2010 Posts: 2 Location: Hyderabad
|
|
|
|
Thanks Guys |
|
Back to top |
|
|
|