Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
input the dataset name to the JCL during run time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Subha Sreenivasan

New User


Joined: 04 Aug 2008
Posts: 5
Location: Chennai

PostPosted: Tue Jun 05, 2012 3:20 pm    Post subject: input the dataset name to the JCL during run time
Reply with quote

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

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1783
Location: Bloomington, IL

PostPosted: Tue Jun 05, 2012 3:49 pm    Post subject: Re: input the dataset name to the JCL during run time
Reply with quote

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:
  1. Specify it as a parameter or in a control member and have the program allocate it dynamically.
  2. Have the JCL fabricated (from a skeleton or otherwise) and submitted with the TSO SUBMIT command or written to the internal reader.
  3. Use your scheduling product to modify a virtual copy of the JCL when the job is submitted.
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Tue Jun 05, 2012 3:53 pm    Post subject: Reply to: input the dataset name to the JCL during run time
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1532
Location: Chennai

PostPosted: Tue Jun 05, 2012 5:20 pm    Post subject:
Reply with quote

Hi bodatrinadh,
I think PGM=SASLPA is site specific utility and not a standard at all shops.

CODE=806
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1932
Location: UK

PostPosted: Tue Jun 05, 2012 11:31 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jun 06, 2012 9:39 am    Post subject:
Reply with quote

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... icon_smile.gif
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Wed Jun 06, 2012 10:03 am    Post subject: Reply to: input the dataset name to the JCL during run time
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us