Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to include member in the JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
asrinuyadav
Warnings : 1

New User


Joined: 27 Aug 2007
Posts: 5
Location: bangalore

PostPosted: Tue Jul 15, 2008 1:05 pm    Post subject: How to include member in the JCL
Reply with quote

Hi

I want to create one generic jcl , in that jcl i want to include member .


I want to edit the values in the member so that every time i need not to go to JCL and edit the values ,

how to give the dataset names in that jcl dynamically?


Srinu
Back to top
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3562
Location: Brussels once more ...

PostPosted: Tue Jul 15, 2008 1:11 pm    Post subject:
Reply with quote

One generic JCL to do what, everything, of for a specific task ?

Have you read the JCL manuals, may I suggest looking at the INCLUDE statement as a starting point.

Please explain in more detail what you want to achieve
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2235
Location: Mumbai, India

PostPosted: Tue Jul 15, 2008 2:58 pm    Post subject: Re: How to include member in the JCL
Reply with quote

Hi,
asrinuyadav wrote:
I want to create one generic jcl , in that jcl i want to include member .

This is very little for us to provide with suggestion/s, "generic JCL" is not a universal term, I'm little confused, if there would been be one, I might have written only one JCL for my entire system..

Quote:
how to give the dataset names in that jcl dynamically?
Now this is some thing explanatory, is this the only requirement just for now or are there some more rules to define the term 'generic', please elaborate little more.
Back to top
View user's profile Send private message
asrinuyadav
Warnings : 1

New User


Joined: 27 Aug 2007
Posts: 5
Location: bangalore

PostPosted: Tue Jul 15, 2008 5:36 pm    Post subject: Reply to: How to include member in the JCL
Reply with quote

I want to create one jcl , so I want to include a member in that jcl , can you give one example jcl for include member in that jcl and how the contact of member .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3562
Location: Brussels once more ...

PostPosted: Tue Jul 15, 2008 5:45 pm    Post subject:
Reply with quote

expat wrote:
Have you read the JCL manuals, may I suggest looking at the INCLUDE statement as a starting point.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8768
Location: 221 B Baker St

PostPosted: Tue Jul 15, 2008 9:06 pm    Post subject:
Reply with quote

Hello,

Quote:
I want to create one jcl , so I want to include a member in that jcl , can you give one example jcl for include member in that jcl and how the contact of member .
You know what you want, but you have not been able to explain it to others. . .

You've used the word "include", but this may not be what you mean. Are you saying that your jcl should use a member of some pds that will be named at run time? This is done using a symbolic paramtere rather than an "include".

You might also provide the dataset name as another symbolic parameter.

If you post the jcl you have that does something specific and explain what part(s) you want to be dynamic, we can show you how to do what you want with one or more symbolic parameters so you will not need to edit manually every time you run the job.
Back to top
View user's profile Send private message
asrinuyadav
Warnings : 1

New User


Joined: 27 Aug 2007
Posts: 5
Location: bangalore

PostPosted: Wed Jul 16, 2008 11:18 am    Post subject: Reply to: How to include member in the JCL
Reply with quote

Yes i want use this below code in jcl , how i can do it ?


in JCL:
include member=srinu


in member
SRINU
that member i want to put as : set &pkg=number



and in the above jcl iwant to use the dataset with &pkg,


can u give the sample jcl it contains the Include member , like above
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2235
Location: Mumbai, India

PostPosted: Wed Jul 16, 2008 11:59 am    Post subject:
Reply with quote

Hi,

The main problem in this thread is the communication gap, it's not at all clear what do you want to do, this is not to disappoint you but then written text is the only media for communication on such forums, unless they are well constructed, how in the heaven one would know what exactly the requirement is..

This
Quote:
in member
SRINU
that member i want to put as : set &pkg=number
doesn't provide me any information, please show what you have tried so far (JCL or some other code), might be that will give us a hint to suggest something useful. Please use "code tag (BBcode)" when you show your JCL.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3562
Location: Brussels once more ...

PostPosted: Wed Jul 16, 2008 3:15 pm    Post subject: Re: Reply to: How to include member in the JCL
Reply with quote

asrinuyadav wrote:

can u give the sample jcl it contains the Include member , like above


I have told you, TWICE, to look in the JCL manual. It can be reached by the manuals button at the top of the page.

If you can not be asked to do your own research, please do not ask others to do it for you.

You have been warned !!!
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 543
Location: work

PostPosted: Wed Jul 16, 2008 10:57 pm    Post subject: Reply to: How to include member in the JCL
Reply with quote

I think you probably want to use rexx along with ISPF skeletons to dynamically build your JCL.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3562
Location: Brussels once more ...

PostPosted: Thu Jul 17, 2008 11:54 am    Post subject: Re: Reply to: How to include member in the JCL
Reply with quote

Pedro wrote:
I think you probably want to use rexx along with ISPF skeletons to dynamically build your JCL.

Yeah, another option, but the INCLUDE method is just as easy, I use it all of the time.
Back to top
View user's profile Send private message
asrinuyadav
Warnings : 1

New User


Joined: 27 Aug 2007
Posts: 5
Location: bangalore

PostPosted: Thu Jul 17, 2008 2:06 pm    Post subject: Reply to: How to include member in the JCL
Reply with quote

Hi

I solved my problem ,


Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3562
Location: Brussels once more ...

PostPosted: Thu Jul 17, 2008 2:10 pm    Post subject:
Reply with quote

Care to share ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1