How to code fscode 10 in cobol program? Where yoy code in your
pgm?give ans for the question.

Answers were Sorted based on User's Feedback



How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question...

Answer / adarsh

File status 10 specifies that there are no records to read
in a file.
We can use anywhere in the program after opening the file
and before closing the file.

Is This Answer Correct ?    8 Yes 0 No

How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question...

Answer / manikandesvaran

After sucessfull read just check the file status code
associated.
For ex.
PERFORM UNTIL WS-FILE-REC-EOF
READ INP-DATA INTO WS-FLE-INP-REC
AT END
SET WS-FILE-REC-EOF TO TRUE
END-READ

IF WS-INP-FLE-STATUS = ZEROS OR 10
CONTINUE
ELSE
DISPLAY '------------ERROR-----------------------'
END-IF.

Hope this will help .

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More COBOL Interview Questions

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

1 Answers   IBM,


The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?

6 Answers   Cognizant,


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


what r the types of perform statement

4 Answers  


IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,






Can we move X(7) to S9(7) COMP?

1 Answers  


Give some examples of command terminators?

0 Answers  


how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

5 Answers   IBM,


what is the advantage of sync class

3 Answers   ACS,


how to run sub programs using static and dynamic call ...

3 Answers   TCS,


What is the reference modification.

2 Answers  


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  


Categories