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
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How you can read the file from bottom?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is redefines clause in COBOL?
When is inspect verb is used in cobol?
How do u write test cases?
Which Search verb is equivalent to PERFORM…VARYING?
How do define dynamic array in cobol.
how do you reference the rrds file formats from cobol programs
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Can we change the password using ALTER? anyone tried and changed?
Difference between array and sub-script ?
What is the difference between comp and comp-3 usage?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)