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

First SORT the input file.
Assume the sorted o/p is in MY.SORT.FILE, then run this step

//CHEKEMTY EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//MYFILE DD DSN=MY.SORT.FILE,DISP=SHR
//SYSIN DD *
PRINT INFILE(MYFILE) CHARACTER COUNT(1)

if the above step returns a RC=4, then the file is
empty

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the statement which can be used to send data to another mvs jes3 node?

1171


What do you know about jcl?

1133


Does jcl support automatic restart?

1222


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

1268


How to submit a jcl from cics?

1143


Where & How Do You Code Identifier In Jcl?

1272


What are steplib and joblib?

1158


What is jcl in mainframe?

1188


What is the significance of addrspc parameter in the exec statement?

1062


How can an in-stream dataset be terminated?

1333


Is automatic restart possible in jcl?

1199


Give the syntax of job specifying jcl statement.

1133


What is the syntax of JCL statement?

1223


what happens in conversion stage in job processing?

1217


What is the maximum length of a single line of jcl?

1345