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 

Passing Value from a file to JCL

 
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
karthikbabudh
Beginner


Joined: 29 Apr 2005
Posts: 10
Topics: 6

PostPosted: Tue Sep 30, 2008 2:30 am    Post subject: Passing Value from a file to JCL Reply with quote

Hi,

Let me know whether there is anyway to read a file from JCL and pass the file content to JCL which will be used as a parameter in the JCL.

For ex:
In the below statement instead of hard coding the *, I need to read a file and then put that value here.

//SYSPRINT DD SYSOUT=*
_________________
Regards,
Karthik Babu.
Back to top
View user's profile Send private message
callanand
Beginner


Joined: 12 Jun 2007
Posts: 23
Topics: 2

PostPosted: Tue Sep 30, 2008 5:08 am    Post subject: Reply with quote

Karthik,
Will your file be having multiple records or just one. If you have multiple records then on what basis do you want to select a record. Please show with an example.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Sep 30, 2008 7:35 am    Post subject: Reply with quote

Karthik, I think we the Forum members need to interpret your question as you wish to read some value from a dataset and then change a parameter of some other job to that value before that other job gets submitted. Obviously, parameter values in a job that's already running can't be modified.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


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

PostPosted: Tue Sep 30, 2008 10:57 am    Post subject: Reply with quote

You can use JCL INCLUDE to supply the DD to the job from a file as the JOB is submitted.

The file contains a member named SYSOUT that looks like
Code:
//SYSPRINT DD SYSOUT=*
and you use JCLLIB and INCLUDE to pick it up. When you change the member, your next submitted job picks up the change.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
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 -> 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