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

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.

1 Answers   Syntel,


How do you code Cobol to access a parameter that has been defined in JCL?

3 Answers  


What are the two search techniques ?

2 Answers   iGate,


How do you compile cobol program..?

1 Answers  


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


If I want to increase the Limit in GDG. What should I do?

1 Answers   IBM,


what are the steps to sort in a cobol program?

2 Answers   Patni,


How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree

3 Answers   Merrill Lynch,


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....

1 Answers   HCL,


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?????

6 Answers   TCS,


Categories