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

How to test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.

Answer Posted / vani

By IDcams its is possible
// STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILE1 DD DSN=INPUT-FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILE1)
DUMP COUNT(1)
/*
IF THE FILE IS EMPTY JCL GIVES RC=4

Is This Answer Correct ?    21 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 2 types of parameters in dd statement?

1207


Explain how can values be passed from the job stream to an executable program?

1308


how do you access an uncataloged dataset in a jcl?

1808


what JCL Procedures?

1302


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

1327


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1437


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

2793


Is automatic restart possible in jcl? If yes, how?

1168


what is a jcl?

1177


what is the compile process of cobol program expalin with code

2641


What is the function of the dd avgrec keyword in sms datasets?

1381


Is there any command to check wether the ps file is in sorted order?

2953


What are the parameters that are used in creating a gdg?

1272


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

1189


what is use of dsn parameter in dd statement?

1199