View previous topic :: View next topic
|
Author |
Message |
jeya_seelan347 Currently Banned New User
Joined: 15 Oct 2008 Posts: 2 Location: Chennai
|
|
|
|
Hi all,
I need to pass a symbolic parameters to JCL from scheduler. Below is my jcl
Code: |
//XXXXXXX JOB CLASS=A,MSGLEVEL=(1,1),NOTIFY=&SYSUID,MSGCLASS=X,
// REGION=4HM
// XX=&XX,WY=&WY
//STEP1 EXEC PGM=IDCAMS
//STEEPED DD DSN=HLQ.AA&XX..LAC.&WY.,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
PRINT INFILL(STEEPED) COUNT(1) |
I need to pass symbolic parameter XX & YY values to JCl from Scheduler. My scheduler is TWS. Will it be possible in TWS? If not can you please let me know in which Scheduler I can do this?
Edited: Please notice your post is been edited to add the code tags, leran to use BBcode - they make the code rather readable.. Anuj |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
My scheduler is TWS. Will it be possible in TWS? If not can you please let me know in which Scheduler I can do this? |
If your scheduler is TWS then knowing how this is done in another scheduler will not help you at all.
I assume that the symbolics are XX and WY
Are these set values or variable from run to run.
What do they represent - dates, times, ............... ad infinitum
We need more information to be able to help properly |
|
Back to top |
|
|
jeya_seelan347 Currently Banned New User
Joined: 15 Oct 2008 Posts: 2 Location: Chennai
|
|
|
|
The same JCL needs to be run on Differenet databases segments. It not depends on date ant time. Mostly it depends on databases segments. I may run the same job same time with different db. (i.e everyday 7 Am i will run the job on different db segments). |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Schedulers work best supplying values that are the same for all jobs, such as today's date, day of week, etc.
What logic would determine which valeus are used in each run?
To have a different value for different runs you would be best to schedule separate jobs for each database name.
If you feel differently, please elaborate on your requirements. |
|
Back to top |
|
|
mr.mmsk
New User
Joined: 17 May 2005 Posts: 3
|
|
|
|
you can put the steps inside the catalog procedure and create different job cards with the symbolic parameters to run on diff time.. its just a short cut.. see if this helps |
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Code: |
//SAMPJCL JOB ONL,,CLASS=W,MSGCLASS=2,MSGLEVEL=(1,1),REGION=32M,
// NOTIFY=&SYSUID,COND=(4,LT)
//*%OPC SCAN
//DELST1 EXEC PGM=IEFBR14
//DELF1 DD DSN=&VPRM1..WRK.YSFXGUNG,DISP=(MOD,DELETE),
// SPACE=(TRK,(1,1))
|
You can pass TWS variables to the JCL's.
Type OPC SCAN line firstly to scaning JCL's for the parameters. Then you can use your own variables and TWS variables.
In my sample I have used "VPRM1" parameters for the dataset naming. |
|
Back to top |
|
|
|