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 ?
Answers were Sorted based on User's Feedback
Answer / manish
Hi Shreyas...You asked for the syntax of Terminate command.
Read work file #WK-Number once #WK-Record
At End of File
Terminate 40
End-Endfile
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / shreyas
Prakash thanks for your reponse. Could you please provide me with syntax of the Terminate command that would be helpful for me...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sathish
STOP command used to end the program, TERMINATE used to end
the natural session.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / shreyas
Jaishree you have gievn the logic . I want to know how to force natural program to abend. What is the command used?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.
syntax for all WRITE COMMAND in natural language
control variable in online screens
A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?
The natural file converted to PDF file if Yes then explain ?
Explain how many work file we can code in jcl?
Can we update with histogram?
What exactly is a hyperdescriptor? How does it work?
what type of files we can process thru file-aid
What is the difference between escape(top or bottom) and escape immediate(top or bottom?
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?
Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.