View previous topic :: View next topic |
Author |
Message |
Mike Nitz Beginner

Joined: 09 Jun 2005 Posts: 19 Topics: 12 Location: Kansas City, MO
|
Posted: Thu Apr 08, 2010 2:59 pm Post subject: Utility to check existence of DSName |
|
|
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 |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Apr 08, 2010 3:37 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|