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 / 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 |
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
How do you code Cobol to access a parameter that has been defined in JCL?
What are the two search techniques ?
How do you compile cobol program..?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
how we can edit records in vsam data set and non vsam data sets
can we display comp-3 variables. if we want to display what we have to do . give me one example
If I want to increase the Limit in GDG. What should I do?
what are the steps to sort in a cobol program?
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????