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

Answer Posted / amarnadh reddy

Hi,
Use 3.4 option,to see the flat file. After it display the
file is empty.
or
When the file reading, file status code is 23.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different data types in cobol?

801


how to refer the data field?

1812


How many bytes S(8) comp field occupy and its maximum value?

1636


Which mode is used to operate the sequential file?

671


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

700






What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

719


how do you reference the variable block file formats from cobol programs

688


Explain how you can characterize tables in cobol?

642


What is length is cobol?

652


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

1000


What are various search techniques in cobol? Explain.

650


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6838


What are all the divisions of a COBOL program?

667


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

678


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780