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

jcl utility to run the jcl commands in sysin card


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ragu_innovator01

New User


Joined: 23 Feb 2009
Posts: 1
Location: chennai

PostPosted: Fri Feb 27, 2009 11:28 pm
Reply with quote

Is there any jcl utility to run the jcl commands in sysin card.
Assume that my sysin card has the JCL statement."// SET VAR=1".
Can I execute that statement using one utility in run time.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Sat Feb 28, 2009 12:29 am
Reply with quote

I do not know of a utility for this but if you put it in a member of a PDS you could include it into the JCL.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 28, 2009 12:48 am
Reply with quote

Hello,

Quote:
Can i execute that statement using one utility in run time.
What would some utility accomplish? SET is another jcl statement that you could include in the job to have the value set.

Quote:
Is there any jcl utility to run the jcl commands in sysin card.
// SET would not be "in" a "sysin card".

It may help if you post a more complete description/example of what you want to do.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 28, 2009 12:49 am
Reply with quote

Add an appropriate jobcard and a step and you could route the contents of the sysin to the JES Internal Reader for execution. Don't know what you're looking to get out of doing that, though.
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Mar 02, 2009 1:05 pm
Reply with quote

Initially the value of the var is set to 01 using "// SET VAR=01"
In third step the value of the var is changed to '03'(it will assign dynamically) in the cobol program execution step.
After the 3rd step , i have to assign the var value as '03'

Is it possible to assign a value to the jcl variable dynamically?

Is it possible to pass the value to jcl from cobol?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Mar 02, 2009 1:36 pm
Reply with quote

sathish1760 wrote:
In third step the value of the var is changed to '03'(it will assign dynamically) in the cobol program execution step.
After the 3rd step , i have to assign the var value as '03'
If in step third it's already set to "03", unless you change it - it should be same in the subsequent steps...

PS. By the way why such a big font there?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 02, 2009 3:00 pm
Reply with quote

Once set, the variable is inplace until end of job. It can not be updated dynamically.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
Search our Forums:

Back to Top