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

Answer Posted / abhijit saha

Without JCL & Cobol i have this Option.
Just Type 'I' in front of your Datset which gives you
Data Set Information
jst Check the Current Utilization part if it shows 0 it
menas file is empty..

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

945


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

2105


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


What is the difference between comp and comp-3?

704


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661






How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


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

748


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

690


What is a SSRANGE and NOSSRANGE?

821


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


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.

5065


What is the local-storage section?

683


What rules are followed by the search verb.

638


What are literals?

632


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5693