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 is the motivation behind coding class parameter in job statement?

1131


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2219


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

1167


Explain how can the attributes of one sms dataset be copied to another dataset?

1157


define cond parameter in jcl?

1220


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1784


Explain the function of a dd statement?

1122


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1110


what are the various stages of job processing?

1233


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

1039


Which dd parameters are required?

1110


what is the purpose of coding class parameter in job statement?

1202


how to compare two datasets without using superce because output is limited to 133 bytes

2055


What are steplib and joblib? What for they are used?

1134


Explain the purpose of dd dummy statement?

1159