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: 2422
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: 175
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 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
This topic is locked: you cannot edit posts or make replies. How to get local time using CICS comm... DAVID JOHN CICS 10 Wed Feb 10, 2016 3:16 pm
This topic is locked: you cannot edit posts or make replies. UST Global - Cobol+ JCL+ DB2 Akhil Madhavan Mainframe Jobs 0 Mon Sep 21, 2015 10:20 am
No new posts Using different values for Skeleton d... venksiv CLIST & REXX 8 Thu Sep 03, 2015 5:28 pm


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