IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Symbolic parameters to JCL from schedule


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jeya_seelan347
Currently Banned

New User


Joined: 15 Oct 2008
Posts: 2
Location: Chennai

PostPosted: Wed Oct 29, 2008 5:12 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 29, 2008 5:24 pm
Reply with quote

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
View user's profile Send private message
jeya_seelan347
Currently Banned

New User


Joined: 15 Oct 2008
Posts: 2
Location: Chennai

PostPosted: Wed Oct 29, 2008 5:31 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Oct 29, 2008 7:55 pm
Reply with quote

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
View user's profile Send private message
mr.mmsk

New User


Joined: 17 May 2005
Posts: 3

PostPosted: Wed Oct 29, 2008 9:12 pm
Reply with quote

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
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Sat Dec 06, 2008 4:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
Search our Forums:

Back to Top