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
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the difference between structured cobol programming and object alternativelyiented cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
How do u write test cases?
What are declaratives and what are their uses in cobol?
What are the different rules of SORT operation?
Explain about different table spaces.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
how can i see junk values in dclgen or in hostvariable of comp ?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What are the rules of the move verb?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is s000 u4087 error? please give the all error codes in cobol,jcl.