differnce between read work file 1 and read work file once?
why we are using work file once?
Answer Posted / satya
To answer why do we use READ WORK FILE 1 ONCE
It is generally used when you specifically want to know if
the input file is empty programatically and if you would
like to handle the way you wanted if the file is empty,just
like below,
READ work 1 ONCE #WORK
AT END OF FILE
Write "Input empty"
terminate 99
END-ENDFILE
this piece of code can be placed at the begining of your
program and this helps to avoid unnecessary entry into
programming statements with empty file in input, unless
expected
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?
Explain the address converter?
Explain adabas basic concepts. Like inverted list, address converter ,data storage?
Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?
How converted the natural coding for adabas
What is the difference between read(1) and read work file once?
Explain how to move cursor to a particular field when position is not known?
Explain difference between read work file 1 and read work file once? Why we are using work file once?
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?
Tell me can we update with histogram?
Explain how many work file we can code in jcl?
Explain how are you going to remove duplicates from the file that is being read?
Explain why do we use file-aid for seqential files?
Can we see the copy book length using file-aid?
What is the difference between read work file 1 and read work file once? Why we are using work file once?