Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain control variable in online screens?

988


What is a hyperdescriptor? How does it work?

1098


How can we see the copy book length using file-aid?

949


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

1051


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

1063


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

1066


Explain difference between escape(top or bottom) and escape immediate(top or bottom?

1176


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

992


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

953


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?

1058


Explain how many work file we can code in jcl?

971


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

959


What is the difference between read work file 1 and read work file once? Why we are using work file once?

954


Explain difference between read(1) and read work file once?

949


What is cobol coding sheet?

1216