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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


what is the difference between COBOL2 AND COBOL390?

2449


What is the usage of comp fields in cobol?

653


What are 77 levels used for?

656


Name the sections present in data division.

697






what are decleratives in cobol?

1827


What is the utilization of copybook in cobol?

650


what is amode(24), amode(31), rmode(24) and rmode(any)?

691


Write a program that uses move corresponding.

668


What is rmode(24)

676


What are the different rules of SORT operation?

693


What kind of error is trapped by on size error option?

738


Difference between cobol and cobol-ii?

704


how do you reference the variable unblock file formats from cobol programs

743


What is the compute verb? How is it used?

653