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."
Answer Posted / 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 View All Answers
How do you reference the following file formats from cobol programs?
What are the different open modes available in cobol?
IF I mention stop run in CICS what happens?
What are the pertinent COBOL commands?
Differentiate between structured cobol programming and object-oriented cobol programming.
how do you reference the rrds file formats from cobol programs
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Mention the guidelines to write a structured cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is difference between cobol and cobol/400
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between binary search and sequential search?