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
Which mode is used to operate the sequential file?
What is the difference between PIC 9.99 and PIC9v99?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Write the code to count the sum of n natural numbers.
what is difference between cobol and cobol/400
Write down the divisions of cobol program?
What are the different rules for performing sort operation?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Difference between array and sub-script ?
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
How to print 10 to 1 if the input have only 10 digit number?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is the difference between comp and comp-3 usage?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How are the next sentence and continue different from each other?