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

What are the pertinent COBOL commands?

2621


Write down the divisions of cobol program?

665


What is the compute verb? How is it used?

655


Are you comfortable in cobol or jcl?

639


When is inspect verb is used in cobol?

671






Write some characteristics of cobol as means of business language.

614


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

745


how do you reference the rrds file formats from cobol programs

792


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1113


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

1900


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?

1800


What is the Purpose of POINTER Phrase in STRING command in COBOL?

714


What is a SSRANGE and NOSSRANGE?

818


What is difference between static and dynamic call in cobol?

772


For rewrite, why is it mandatory that file needs to be opened?

620