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
Write down the divisions of cobol program?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
For rewrite, why is it mandatory that file needs to be opened?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Give some examples of command terminators?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
) what is the difference between AID and HANDLE AID?
how do you reference the fixed unblock file formats from cobol programs
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is length is cobol?
explain sorting techniques in cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are different data types in cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?