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 

Trap the PDS Name

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Venkata Ramana Reddy
Beginner


Joined: 02 Dec 2002
Posts: 70
Topics: 19
Location: California

PostPosted: Wed Jul 02, 2003 1:53 pm    Post subject: Trap the PDS Name Reply with quote

I have to trap the PDS name from where I submit the JCL. Is there a way to do it..
_________________
Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Jul 02, 2003 11:22 pm    Post subject: Reply with quote

how are you submitting the job? you can make a macro that will trap the name and submit the jcl. but then you will have to open it in edit/view mode.
Back to top
View user's profile Send private message Send e-mail
Venkata Ramana Reddy
Beginner


Joined: 02 Dec 2002
Posts: 70
Topics: 19
Location: California

PostPosted: Thu Jul 03, 2003 11:08 am    Post subject: Reply with quote

I want to know the PDS name before hand( before submitting the JCL).Is there any system static variable(like &SYSUID) which gives me the PDS name from where I am submitting the JCL.
_________________
Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Jul 03, 2003 11:50 pm    Post subject: Reply with quote

I understand that you want to write a JCL which on execution will be able to tell the name of its PDS.

I have another question - Is it possible to write a program in any language to tell the name of its source file on execution. If yes, I would like to see the corresponding code.

Regards,
Dibakar.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Oct 13, 2003 5:30 am    Post subject: Reply with quote

Venkataramana,

I know it's very late but still for sake of completion, this has a REXX code to do the stuff, which you can put in you job.

Diba.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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