How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)

Answer Posted / sroul4

Just write COUNT in front of the data set it will show thw
record count in it. 0 in this case.

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need a small 3d program using inline and outline.

1629


What is redefines clause in COBOL?

844


Explain how to differentiate call by context by comparing it to other calls?

683


how can i see junk values in dclgen or in hostvariable of comp ?

2538


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1925






Why occurs cannot be used in 01 level in COBOL?

711


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

695


What are the various section in data division and briefly explain them.

692


What rules are followed by the search verb.

631


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1838


Write down the divisions of cobol program?

665


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8155


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2002


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1924


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718