View previous topic :: View next topic
|
Author |
Message |
som_infotech
New User
Joined: 25 Feb 2006 Posts: 38 Location: chennai-india
|
|
|
|
actually i want to move a s9(05) variable to another s9(05) variable but when moving it gives me S07 abend so i just took a display of that item it is holding '40404' what should i do to solve it |
|
Back to top |
|
|
pasupuleti
New User
Joined: 30 Jun 2006 Posts: 8 Location: India
|
|
|
|
Please check if you've initialized the variables properly in the WS section or in the Procedure division before the move statement. |
|
Back to top |
|
|
som_infotech
New User
Joined: 25 Feb 2006 Posts: 38 Location: chennai-india
|
|
|
|
actually it is got from the file
ex
a pic 9(5) comp3.
b pic 9(5) comp3.
when i read the file it will be stored into a variable then i want the same contents to be moved to b variable. when moving it gave me s07 error so i just displayed the value it has the data '40404' but my requirements is the same data should be moved to b variable what ever it may be in a variable it should be moved. |
|
Back to top |
|
|
pasupuleti
New User
Joined: 30 Jun 2006 Posts: 8 Location: India
|
|
|
|
Som,
I think this question is already answered in a different posting from you. The 0C7 is happening because you're trying to move Spaces (40404) to numeric destination.
If you can ensure that only numeric data gets moved to the destination field then by using the IS NUMERIC option, then it should be fine. |
|
Back to top |
|
|
btgprasad
New User
Joined: 21 Mar 2006 Posts: 4
|
|
|
|
if it is showing ''40404' ...it ascii or EBCDIC formate of spaces!!
some spaces are getting moved to that purticular field .u cant move move space to comp-3.
try initialise the record inwhich filed is there . |
|
Back to top |
|
|
|