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 |
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
What are the different rules to perform a Search?
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
If you were passing a table via linkage, which is preferable - a subscript or an index?
What are the differences bitween cobol and cobol-2?
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
The maximum number of dimensions that an array can have in COBOL-85 is ?
How to pass return codes from cobol to jcl?
Can the OCCURS clause be at the 01 level?
What are 77 levels used for?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
can we read in input the file with a variable length ? please , how ..could you help me ?