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
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 |
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 |
What is the reference modification.
what is meaning by design document? who can repared for this?
SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.
can we use the two 01 level in file discription ?
What is perform what is varying?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
What are 77 levels used for?
diffrence between renames and redifnes with examples
why do u need inspect verb?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
What is "Call by content" and "call by reference"?