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 ?
Answer Posted / jaishree
You 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.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain how are you going to remove duplicates from the file that is being read?
Explain the data storage?
Explain the like inverted list?
Explain how many work file we can code in jcl?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
Explain how to move cursor to a particular field when position is not known?
In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?
How to create 1 ddm that fetches 3 adabas files simultaneously?
Can we see the copy book length using file-aid?
Explain the address converter?
Explain why do we use file-aid for seqential files?
What is a hyperdescriptor?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
Explain difference between read(1) and read work file once?
How can we see the copy book length using file-aid?