View previous topic :: View next topic
|
Author |
Message |
srikar tenali
New User
Joined: 07 Feb 2007 Posts: 22 Location: hyderabad
|
|
|
|
"NEW-POSTL-RATE (PACKED NON-INTEGER)" and "WS-NEW-VALUE-FILE2 (ALPHANUMERIC)" did not follow the "MOVE" statement compatibility rules. The statement was discarded.
WHAT IS THE SOLUTION IN THE ABOVE CASE? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Srikar,
Please provide the defination of the variables |
|
Back to top |
|
|
srikar tenali
New User
Joined: 07 Feb 2007 Posts: 22 Location: hyderabad
|
|
|
|
thank you for the response
this is the definition for the given variables.
15 NEW-POSTL-RATE PIC S9(3)V9(2) COMP-3.
01 WS-OLD-VALUE-FILE1 PIC X(20) VALUE SPACES. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
srikar tenali wrote: |
"NEW-POSTL-RATE (PACKED NON-INTEGER)" and "WS-NEW-VALUE-FILE2 (ALPHANUMERIC)" did not follow the "MOVE" statement compatibility rules. The statement was discarded.
WHAT IS THE SOLUTION IN THE ABOVE CASE? |
Look in the Fine Manual for the "MOVE" statement compatibility rules. |
|
Back to top |
|
|
bharath_rudra
New User
Joined: 07 Feb 2007 Posts: 1 Location: hyderabad
|
|
|
|
MOVE THE VARIABLE S9(3)V9(2) COMP-3 TO 9(3)V9(2) COMP-3
AND THEN
MOVE IT TO THE ALPHANUMERIC VARIABLE. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might want to repost that - they should NOT both be comp-3. That will generate the same error. The compiler won't know one of the comp-3 fields from the other.
My guess is that you meant for the second field to be 9(3)V99.
Keep in mind that when you move that zoned decimal field to the alphanumeric field you will lose the implied decimal and you may not like the alignment of the resulting field. As a rate field, it will probably never be negative, but if you used the above method, you would also lose the sign. Run it in your code, display the alphanumeric field and make sure the result is what you want. When you do the display place marks on each side of the alpha field so you can see the true placement.
If you post some "real" data and how you want it to be in the alpha field, we can better help. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Srikar,
Adding to what Dick said, the blanks you see between the marks may not in fact be spaces.
So when you look at the DISPLAY data in SDSF use "se" instead of "s" when you select the sysout. Then enter "hex on" in the cmd line. This will show you the hex value of the display line. Hex "40" is a space.
Also please tell us how you intend to use the alpha data. |
|
Back to top |
|
|
srikar tenali
New User
Joined: 07 Feb 2007 Posts: 22 Location: hyderabad
|
|
|
|
The above problem is solved by using
MOVE S9(3)V9(2) TO 9(3).9(2)
MOVE 9(3).9(2) TO X(20)
BY USING ABOVE METHOD, IT ISNT GIVING ANY ERRORS.
BUT WHILE TRYING TO SUB JCL, IT IS GIVING System Completion Code=0C7
DOES THIS HAS ANY ISSUE WITH THE ABEND? |
|
Back to top |
|
|
ralph_v
New User
Joined: 07 Jul 2005 Posts: 27
|
|
|
|
I tried the above steps and it is working fine for me without any abends.
Thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
srikar tenali wrote: |
BUT WHILE TRYING TO SUB JCL, IT IS GIVING System Completion Code=0C7
DOES THIS HAS ANY ISSUE WITH THE ABEND? |
Probably not, but maybe so. I don't recall submission alone resulting in an 0C7, probably bad data..... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please post the "sysout" where the error occurred - it may be in multiple places in your output.
Please post the data that caused the 0c7. For example - did the program run for some number of records or did it abend on the first record?
I believe what you've told us is that you had no errors in the compile. That does not mean the problem is solved.
Job submission of your jcl will not cause an 0c7, but having non-numeric data in a number field will. As you continue with this, you might place a numeric test before the moves and detect/display any non-numeric data. |
|
Back to top |
|
|
|