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



You are processing an input file in a Natural program and you want the program to fail if the file..

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

You are processing an input file in a Natural program and you want the program to fail if the file..

Answer / prakash

Give Terminte command with siviority number

Is This Answer Correct ?    4 Yes 0 No

You are processing an input file in a Natural program and you want the program to fail if the file..

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

You are processing an input file in a Natural program and you want the program to fail if the file..

Answer / sathish

STOP command used to end the program, TERMINATE used to end
the natural session.

Is This Answer Correct ?    2 Yes 1 No

You are processing an input file in a Natural program and you want the program to fail if the file..

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

You are processing an input file in a Natural program and you want the program to fail if the file..

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

Post New Answer

More Natural Interview Questions

What exactly is a hyperdescriptor? How does it work?

3 Answers  


Explain the like inverted list?

0 Answers  


syntax for all WRITE COMMAND in natural language

7 Answers  


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

0 Answers  


The natural file converted to PDF file if Yes then explain ?

0 Answers  


Which is more efficient - the external subroutine or a copycode coded in to a NATURAL program? And Why?

2 Answers   Hexaware,


How can I create 1 DDM that fetches 3 ADABAS files simultaneously?

5 Answers  


Explain how many work file we can code in jcl?

0 Answers  


Explain why do we use file-aid for seqential files?

0 Answers  


Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.

1 Answers  


How to receive data passed through jcl parm parameter in a natural program?

0 Answers  


Explain the data storage?

0 Answers  


Categories