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 to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

0 Answers  


COMP field occupy ?

2 Answers  


What is the difference between a binary search and a sequential search what are the pertinent cobol?

0 Answers  


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.

7 Answers   Financial Services,






consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error

4 Answers   TCS,


Did anybody attend the walkin of TCS on 31st July in Gurgaon for any technology,If u have completed 3 round i.e till the HR round,have u received the Offer letter yet? Please let me know.Thanks.

1 Answers  


Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?

12 Answers   T systems, Tech Mahindra,


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


what is sync clause?

2 Answers   DELL,


Categories