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



How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question...

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

How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question...

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

Post New Answer

More COBOL Interview Questions

i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


How can you display the SPOOL information ?

2 Answers  


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,


What is the significance of 'above the line' and 'below the line'?

2 Answers   Nokia,






.How to add one input & one Out file in existing cobol program. how approach tell me step by step.

2 Answers   Syntel,


What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.

3 Answers   IBM, Xansa,


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

4 Answers   TCS,


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.

0 Answers   Cap Gemini,


What is Redefines clause?

8 Answers  


Can you please let me know the centre name of INS certification in Kolkata.

0 Answers  


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


Categories