How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)

Answer Posted / sandy

Opening a file will give a file status code of '0' and
not '10'. Only when reading, file status will be '10'

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the variable unblock file formats from cobol programs

994


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

976


what is the use of outrecord?

1964


Difference between array and sub-script ?

1365


What are the cobol coding sheets?

856


how do you reference the fixed unblock file formats from cobol programs

916


how to refer the data field?

1985


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2313


In COBOL, what is the different between index and subscript?

941


In COBOL programming, what is PERFORM? What is VARYING?

861


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5410


When is inspect verb is used in cobol?

906


How do we get current date from system with century in COBOL?

1053


What is the difference between goback, stop run and exit program in cobol?

1218


What is inspect in cobol ?

997