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
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What are the different data types in cobol?
Can we redefine the field of x(200) to less than 200?
How do you define a variable of comp-1 and comp-2?
Write the code to count the sum of n natural numbers.
What are all the divisions of a COBOL program?
What is a SSRANGE and NOSSRANGE?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
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 are the pertinent COBOL
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you reference the fixed block file formats from cobol programs
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between PIC 9.99 and PIC9v99?
What is the local-storage section?