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

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

1333


What are the 4 fields in dd statement?

1211


How jcl is used for testing batch programs?

1241


What does a disposition of (new,catlg,keep) for a dsn mean?

1096


which utility is used a dummy utility?

1417


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?

2243


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2404


Is their any set of rules for dd? Explain.

1139


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

1221


How do you access an uncatalogued dataset in a jcl?

1180


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

1164


What is the purpose of the dd keylen parameter?

1174


how can the same proc be re-used and called by many jobs?

1462


how to run batch program without jcl?

11386


How to alter the parameters for the existing gdg?

1159