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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2652


What is the quality process in development?

569


Explain control variable in online screens?

556


How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

607


How converted the natural coding for adabas

2687






Explain how to find occurrence of mu and pe fields in a file?

497


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

554


Explain how to move cursor to a particular field when position is not known?

534


Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

565


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?

574


What is a hyperdescriptor?

522


Explain the like inverted list?

539


What is the difference between read(1) and read work file once?

570


Explain difference between read work file 1 and read work file once? Why we are using work file once?

556


What is a hyperdescriptor? How does it work?

629