without performing any operations on a file how can i know
whether it contains data or not

Answers were Sorted based on User's Feedback



without performing any operations on a file how can i know whether it contains data or not..

Answer / sharpmainframe

QUASI RE ENTRANCY: IN MAINFRAME MORE THAN ONE TASK ACCESS
SAME PROGRAM BUT ONE TASK IS NOT DISTRUB TO OTHER IS CALLED
RE-ENTRANCY IN CICS WE CALLED IS QUASI REENTRANCY.

Is This Answer Correct ?    1 Yes 2 No

without performing any operations on a file how can i know whether it contains data or not..

Answer / sravani

through file status we can know this. read is not possible for empty files

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


What are differences between Static Call and Dynamic Call?

10 Answers   IBM, KBC, Keane India Ltd, Verizon,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


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

4 Answers   Infosys,


i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  






tell me about examine inspect and evaluate ?

2 Answers   CTS,


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


What is Alternate Index ? How is it different from regular index ?

2 Answers  


How can we know that cobol program is using report file or simple file....?

4 Answers  


created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?

2 Answers   HCL,


Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 Answers  


1) can we display the index?

3 Answers   ADP, IBM,


Categories