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

Answer Posted / sharmila_g

IEBPTPCH is used to check empty dataset.. if it returns 4 the dataset is empty or if it returns 0 it is not empty.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is length is cobol?

652


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

700


In COBOL, what is the different between index and subscript?

763


How do you reference the following file formats from cobol programs?

698


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785






Write a cobol program making use of the redefine clause.

739


Which is not true about evaluate statement

1596


Can we redefine the field of x(200) to less than 200?

822


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

635


What is the Purpose of Pointer in the string?

644


What is the difference between external and global variables in COBOL?

815


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


) what is the difference between AID and HANDLE AID?

1637


A table has two indexes defined. Which one will be used by the SEARCH?

759


What are the access modes of START statement?

719