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
 

 

TWS 'global' or 'local' variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Steve Coalbran

New User


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

PostPosted: Thu Mar 17, 2016 7:40 pm    Post subject: TWS 'global' or 'local' variables
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: 2436
Location: Netherlands, Amstelveen

PostPosted: Thu Mar 17, 2016 10:40 pm    Post subject:
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: 179
Location: UK

PostPosted: Tue Mar 22, 2016 4:22 pm    Post subject: Reply to: TWS 'global' or 'local' variables
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    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 DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm


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