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

We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answer Posted / sundar

Using IDCAMS utility

In SYSIN:
PRINT(infile) COUNT(1)

If this step return 4 then the file is empty otherwise if
return 0 then the file is not empty.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameter of the job statement is used to limit the cpu time consumed by the job?

1282


what happens in execution stage in job processing?

1150


Is it possible to code instream data in a PROC?

1339


how to do automated restart when a job abends?

1385


which utility is used to run a cobol-db2 program?

1405


what operation is performed by job statement?

1130


In sms datasets, what is the function of the dd avgrec keyword?

1100


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1240


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1263


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2716


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1232


What is the function of dd name parameter with a 2 part structure; audit.report?

1250


Explain about LMFREE�free data set from its association with data ID

1636


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

1219


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1122