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
What is the difference between external and global variables in COBOL?
What is report-item in COBOL?
What rules are to be followed while using the corresponding options?
Can a Search can be done on a table with or without Index?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Name the sections present in data division.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
) How do u handle errors in BMS macro?
What is the Purpose of Pointer in the string?
What is inspect in cobol ?
What is difference between static and dynamic call in cobol?
How do we get current date from system with century in COBOL?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Have you used comp and comp-3 in your project? And how?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?