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

TWS 'global' or 'local' variables


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Thu Mar 17, 2016 7:40 pm
Reply with quote

This is probably an RTFM answer but a colleague of mine today asked me if in TWS he could set (SETVAR?) a pool of 'global' varables which could be accessed by subsequent jobs.
He went on to refine this request realising that he only wanted members of the same (or selected) ADs to be able to see these variables.
Now, I will of course RTFM anyhow, but if anyone can shortcut this with an absolute "NO way José" icon_sad.gif or (better) "YES, easy, like this... " icon_biggrin.gif that would be a great help!?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Mar 17, 2016 10:40 pm
Reply with quote

Ok, do the RTFM. And enlighten us with what you discovered.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Mar 22, 2016 4:22 pm
Reply with quote

An interesting question. Just to clarify, you want to use a set some variables in one job that are then available to later jobs in the same or different applications?

I think the short answer is no. The SETVAR statement sets variables that are used for that particular job, it does not store them for use in later jobs. If on the other hand we are talking about predefined variables (in the JCL variable table) then you can just point to the appropriate variable table on the run cycle for the application. Bear in mind also that you can define your own variables in the JCL variable table that can be set based on various criteria such as application name or time of day. You're not limited to using the TWS supplied variables.

If this doesn't suit your requirements, you're going to have to get a bit more creative. Two possibilities that spring to mind are using the PIF (Program Interface) to set variables in the JCL Variable Table that could then be referenced by other jobs or writing appropriate SET statement to a member in the EQQJBLIB concatenation that could then be included in subsequent jobs by use of the FETCH directive.
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 JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts defining a global LUA function in Inf... IBM Tools 1
No new posts Trying to reference a javascript glob... CLIST & REXX 7
Search our Forums:

Back to Top