View previous topic :: View next topic
|
Author |
Message |
nico_neoz
New User
Joined: 02 Apr 2016 Posts: 18 Location: India
|
|
|
|
The group variable that I am referring to here has a sub field level in the form of an array of numeric type variable, similar to the one below
Code: |
03 WS-A.
05 WS-N PIC OCCURS 20 TIMES 9(01).
03 WS-B PIC X(20) VALUE 'ABC123456'.
|
Now let's say we move the data from WS-B to WS-A, what will be the data in WS-A |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
What resulted when you attempted to do it? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
|
|
Beginners forum question.
Please do some research and try by yourself. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
|
|
Rohit Umarjikar wrote: |
Beginners forum question.
Please do some research and try by yourself. |
In average, about 90% of new questions are received from those "experts" mostly trained in computer games...
I would call them 'the iksperds" |
|
Back to top |
|
|
nico_neoz
New User
Joined: 02 Apr 2016 Posts: 18 Location: India
|
|
|
|
dneufarth wrote: |
What resulted when you attempted to do it? |
The data was passed as such, no abends. |
|
Back to top |
|
|
nico_neoz
New User
Joined: 02 Apr 2016 Posts: 18 Location: India
|
|
|
|
Rohit Umarjikar wrote: |
Beginners forum question.
Please do some research and try by yourself. |
I did, but the result was not as I expected it to be. |
|
Back to top |
|
|
nico_neoz
New User
Joined: 02 Apr 2016 Posts: 18 Location: India
|
|
|
|
sergeyken wrote: |
Rohit Umarjikar wrote: |
Beginners forum question.
Please do some research and try by yourself. |
In average, about 90% of new questions are received from those "experts" mostly trained in computer games...
I would call them 'the iksperds" |
Not getting you. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I did, but the result was not as I expected it to be. |
So what result did you get and what result did you expect?
The Enterprise COBOL Language Reference manual tells you all about how COBOL works -- including which MOVE statements are allowed and which are not. You should bookmark it so you can reference it frequently for questions like what you posted. |
|
Back to top |
|
|
nico_neoz
New User
Joined: 02 Apr 2016 Posts: 18 Location: India
|
|
|
|
Robert Sample wrote: |
Quote: |
I did, but the result was not as I expected it to be. |
So what result did you get and what result did you expect?
The Enterprise COBOL Language Reference manual tells you all about how COBOL works -- including which MOVE statements are allowed and which are not. You should bookmark it so you can reference it frequently for questions like what you posted. |
I expected an abend to occur as we are trying to move alphanumeric values to a numeric array, instead the data was moved as such. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Topic closed as:
OP did not do his research (search the forum)
OP did not refer to the manual |
|
Back to top |
|
|
|