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 |
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
How can you display the SPOOL information ?
Why did you choose to work with ibm mainframe cobol programming?
can we print comp 3 stmts how ?
What is the significance of 'above the line' and 'below the line'?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is Redefines clause?
Can you please let me know the centre name of INS certification in Kolkata.
TYPES OF SORTINGS. which is more prefarable.