MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Utility to check existence of DSName

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Thu Apr 08, 2010 2:59 pm    Post subject: Utility to check existence of DSName Reply with quote

Is there a utility or program that will check for the existence of a DSN & return a non zero return code if the DSN dosen't exist?
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Apr 08, 2010 3:37 pm    Post subject: Reply with quote

Look at IDCAMS LISTCAT.

Code:
//LISTCAT  EXEC PGM=IDCAMS                         
//SYSPRINT DD SYSOUT=*                             
//SYSIN    DD *                                     
 LISTC ENT('some.non.existing.dsn') ALL   


Then run the same thing with an existing dsn. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Apr 08, 2010 4:00 pm    Post subject: Reply with quote

Mike nitz,

Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?p=43802#43802


In the same above control cards you can check

Code:


  IF LASTCC = 12 THEN DO           
      code the creation of dataset if needed
  END

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group