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 / manid

//STEP1 EXEC PGM=IDCAMS
//DD1 DD DSN=FILE1
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(DD1) COUNT(*)
/*

IF STEP1 RETURNS RC=4 THEN FILE1 IS EMPTY FILE

I HOPE THIS WILL HELP YOU

Thanks
ManiD

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does jcl act on code(if you take a cobol program)?

1227


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

1165


what is use of disp parameter in dd statement?

1045


For what purpose steplib and joblib are used ?

1074


What is catelog procedure and how many catelog procedure to use in one job?

8551


Explain the job statement in jcl?

1109


write a jcl to execute a job by 7:00 am on jan 20,1986?

1066


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

2555


What is Cataloged Procedures?

1104


Explain the function of job statement in jcl?

1129


Is automatic restart possible in jcl?

1151


Explain how can the disposition of sysout datasets be set for an entire jobstream?

1033


How gdg are concatenated?

1059


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1179


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

1128