IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Checking for availability of a data set


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Jul 13, 2016 5:17 pm
Reply with quote

Rather than continue a 4 year old topic, I'll start a new topic, though with a valid subject.

IDCAMS cannot test for a valid "file." The only "file" in z/OS is the data on a magnetic tape between the beginning of the tape and a "tape mark," or the data between 2 "tape marks."

Everyone (including the 4 year old TS) are over complicating the JCL.

Something like this works fine regardless of your z/OS.
Code:
//        SET  XDSN='SYS1.PROCLIB'
//A       EXEC PGM=IKJEFT1A,PARM='LISTCAT ENT(''&XDSN'')'
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  DUMMY
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Wed Aug 17, 2016 2:54 pm
Reply with quote

thanks sharing .... this one is simple as compared to IDCAMS icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top