Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Symbolic parameters to JCL from schedule

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: Symbolic parameters to JCL from schedule
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 29, 2008 5:24 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us