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

Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it

3 Answers   TCS,


What was removed from COBOL in the COBOL II implementation?

0 Answers  


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


How do you differentiate between cobol and cobol-ii?

0 Answers  






Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


How to pass return codes from cobol to jcl?

5 Answers  


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


1.What is the limit of linkage section?

4 Answers  


Can we use goto statement in inline_perform ?

5 Answers   IBM,


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


Categories