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


Please Help Members By Posting Answers For Below Questions

Differentiate between structured cobol programming and object-oriented cobol programming.

669


Are you comfortable in cobol or jcl?

643


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


What type of SDLC u followed? Why?

1520


What are the different data types in cobol?

797






How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is the difference between comp and comp-3?

704


how do you reference the rrds file formats from cobol programs

801


Difference between array and sub-script ?

1169


What the difference is between continue and next sentence?

663


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

735


What are the different open modes available in cobol?

722


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What is cobol?

748


Whats the difference between search & search ALL?

5264