View previous topic :: View next topic
|
Author |
Message |
Subha Sreenivasan
New User
Joined: 04 Aug 2008 Posts: 5 Location: Chennai
|
|
|
|
How to get the dataset name as input to the JCL during RUNTIME? the dataset name should not be hardcoded in JOB but should be taken as input during execution. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Subha Sreenivasan wrote: |
How to get the dataset name as input to the JCL during RUNTIME? the dataset name should not be hardcoded in JOB but should be taken as input during execution. |
Any number of ways:
- Specify it as a parameter or in a control member and have the program allocate it dynamically.
- Have the JCL fabricated (from a skeleton or otherwise) and submitted with the TSO SUBMIT command or written to the internal reader.
- Use your scheduling product to modify a virtual copy of the JCL when the job is submitted.
|
|
Back to top |
|
|
bodatrinadh
Active User
Joined: 05 Jan 2007 Posts: 101 Location: chennai (India)
|
|
|
|
Hi Subha,
Do you mean dynamic allocation?
If so, you can pass through PARM....
Here is one example
Code: |
XXS05A EXEC PGM=SASLPA,REGION=6M,
XX PARM=('SYSPARM="&VAR1,&DATE8,&VAR2,&DSN3.055"')
IEFC653I SUBSTITUTION JCL - PGM=SASLPA,REGION=6M,PARM=('SYSPARM="1205,20120531,TST.UACC.JW24053.A.D,JW29055"')
|
Datasets -
TST.UACC.JW24053.A.D1205
TST.UACC.JW29055.A.D1205
Thanks
-3nadh |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi bodatrinadh,
I think PGM=SASLPA is site specific utility and not a standard at all shops.
CODE=806 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Depends what you mean by allocate a dataset at runtime. Your CJL is finished with before the job runs. Passing a datasetname as a parameter to a program is not allocating via JCL - the program does a dynamic allocate of the dataset when it starts.
Really, it is unclear as to what TS is wanting - a clearer definition of the problem would be helpful. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I agree with Nic, the original question is indeed confusing - my first thought was if it is asking about "prompt" to key-in the data-set? Perhaps, ill effect of using too much PC... |
|
Back to top |
|
|
bodatrinadh
Active User
Joined: 05 Jan 2007 Posts: 101 Location: chennai (India)
|
|
|
|
Quote: |
I think PGM=SASLPA is site specific utility and not a standard at all shops.
|
Yes Vasanth, PGM=SASLPA is a site specified utility.
Thanks
-3nadh |
|
Back to top |
|
|
|