How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / vinodh
Goto ISPF 3.4, give the dataset name hit enter.
Press F11 until you see '%used', if its zero then the file
is empty. This will be useful if you want to validate many
GDG's for emptiness.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is the use of intialize verb?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Name some of the examples of COBOl 11?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How do you differentiate between cobol and cobol-ii?
) how do u code after getting data?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
what happens if parmparameter passes zero bytes to the program
how to access the file from prodution from changeman tool and to submit a file to production
IF I mention stop run in CICS what happens?
In COBOL, what is the different between index and subscript?
What the difference is between continue and next sentence?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how can i see junk values in dclgen or in hostvariable of comp ?