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 

Checking, Is the DDname allocated to the Dataset?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Wed Dec 18, 2002 1:34 am    Post subject: Reply with quote

Try out the tso LISTALC command.
Back to top
View user's profile Send private message Visit poster's website
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Wed Dec 18, 2002 1:59 am    Post subject: Reply with quote

Ravi,

You will have to use the STATUS operand.
For syntax and operands use "TSO HELP LISTALC".
Back to top
View user's profile Send private message Send e-mail
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Wed Dec 18, 2002 7:24 am    Post subject: Reply with quote

Premkumar beat me to it. It should be added that you will have to outtrap the LISTALC STA command and process the outtrap data.
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Dec 18, 2002 9:19 am    Post subject: Reply with quote

The ALLOC command also returns a cond code after execution. Test for CC=0 and your file will be allocated successfully. I do this in CLISTs.

Bill
Back to top
View user's profile Send private message
fz
Beginner


Joined: 18 Dec 2002
Posts: 2
Topics: 0
Location: Bavaria, Germany

PostPosted: Wed Dec 18, 2002 11:00 am    Post subject: Reply with quote

Try LISTDSI with file option:
Code:

x=listdsi('DDN1 file')

if x=0 you can get the allocated dsn in variable sysdsname.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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