How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / srini
You can do with IDCAMS. Use input as your file and output
is dummy file and have repro count(1) in sysin dd *, if the
file is empty, you will get condition code 4 otherwise you
will get cc '0'.
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Difference between array and sub-script ?
what is the difference between COBOL2 AND COBOL390?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between PIC 9.99 and PIC9v99?
) How do u handle errors in BMS macro?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is the difference between goback, stop run and exit program in cobol?
how to access the file from prodution from changeman tool and to submit a file to production
Have you used comp and comp-3 in your project? And how?
Give some examples of command terminators?
How arrays can be defined in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the utilization of copybook in cobol?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?