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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts Message Security Assist extension 7 a... PL/I & Assembler 2
No new posts db2 vs static data COBOL Programming 1
Search our Forums:


Back to Top