I am getting S00F abend when i try to compare two variable
of different pic class,one variable is of 9(09) and another
is S9(09) comp-3.

First i moved the data from S9(09) comp-3 to 9(09), but no
luck. So i tried to move the data from S9(09) comp-3 to X
(09) and move to 9(09). I am getting same error message,
Please help me to find solution for this ptoblem.

ERROR MESSAGE - "The system or user abend S00F R=NULL
was issued."



I am getting S00F abend when i try to compare two variable of different pic class,one variable is ..

Answer / eugene

You can't use move when doing math operations with
different data types / presentations.
Try compute statement to convert one of the numbers to the
same presentation as another one and then compare.

Like, A - pic
B - comp-3
Define W as comp-3

Compute W = A

compare W and B

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is COMP-1? COMP-2?

4 Answers   CitiGroup,


Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?

5 Answers  


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,






can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

0 Answers  


how to transfer the file from pc to mainframe??

2 Answers  


How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

9 Answers   Bank Of America,


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


What is SET TO TRUE all about, anyway?

5 Answers  


What is difference between static and dynamic call in cobol?

0 Answers  


Categories