|
|
| Author |
Message |
asrinuyadav Warnings : 1 New User
Joined: 27 Aug 2007 Posts: 5 Location: bangalore
|
|
|
|
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 |
|
 |
References
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3562 Location: Brussels once more ...
|
|
|
|
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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2235 Location: Mumbai, India
|
|
|
|
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 |
|
 |
asrinuyadav Warnings : 1 New User
Joined: 27 Aug 2007 Posts: 5 Location: bangalore
|
|
|
|
| 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 |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3562 Location: Brussels once more ...
|
|
|
|
| expat wrote: |
| Have you read the JCL manuals, may I suggest looking at the INCLUDE statement as a starting point. |
|
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8768 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
asrinuyadav Warnings : 1 New User
Joined: 27 Aug 2007 Posts: 5 Location: bangalore
|
|
|
|
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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2235 Location: Mumbai, India
|
|
|
|
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 |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3562 Location: Brussels once more ...
|
|
|
|
| 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 |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 543 Location: work
|
|
|
|
| I think you probably want to use rexx along with ISPF skeletons to dynamically build your JCL. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3562 Location: Brussels once more ...
|
|
|
|
| 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 |
|
 |
asrinuyadav Warnings : 1 New User
Joined: 27 Aug 2007 Posts: 5 Location: bangalore
|
|
|
|
Hi
I solved my problem ,
Thanks |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3562 Location: Brussels once more ...
|
|
|
|
| Care to share ? |
|
| Back to top |
|
 |
|
|