Suppose You are processing an input file in a Natural program and you want the program to fail if the file is empty. What command you use in Natural to force it to fail?
Submitted by: AdministratorYou use the following steps to check whether the input file
is empty
Step A. Read work file #WK-Number once #WK-Record
Step B. At End of File
Write "Input file is Empty"
End-Endfile
The first step will read the first record in the file and
the next step will see the End of File condition. If the
File is empty, the program will write that we have an Empty
input file to spool.
Submitted by: Administrator
is empty
Step A. Read work file #WK-Number once #WK-Record
Step B. At End of File
Write "Input file is Empty"
End-Endfile
The first step will read the first record in the file and
the next step will see the End of File condition. If the
File is empty, the program will write that we have an Empty
input file to spool.
Submitted by: Administrator
Read Online IBM Natural Job Interview Questions And Answers
Top IBM Natural Questions
☺ | Explain the difference between External subroutine and |
☺ | What is COBOL coding sheet? |
☺ | How to receive data passed through JCL parm parameter in a Natural program? How Data definition is defined in the program? |
☺ | Explain Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same? |
☺ | Explain why do we use file-aid for seqential files? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |