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

Can GLobal variable used under TSOE/REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kaliragavendran

New User


Joined: 04 Sep 2019
Posts: 3
Location: India

PostPosted: Tue Sep 24, 2019 7:16 am
Reply with quote

Hi

IS it possible to use global variable like
globalv putc getc under tso environment

Thanks
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Tue Sep 24, 2019 1:30 pm
Reply with quote

I do not understand your question. All variables in rexx are global unless your sub-routine is declared with the PROCEDURE statement. Also - putc, globalv etc are not rexx varibles unless you use them as such. Nor are they keywords. I suggest a reading of the official rexx language reference,
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 730
Location: Denmark

PostPosted: Tue Sep 24, 2019 2:10 pm
Reply with quote

No built-in support for having variables across REXX like CLIST GLOBALV. There are a couple of free-ware programs available for sharing variables -
REXXGBLV from Use [URL] BBCode for External Links file 669 and harders-jensen.com/wjtech/zprograms.html (newest) handles all kind of variables.
STEMPUSH / STEMPULL from Use [URL] BBCode for External Links file 411 handles stems.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Sep 24, 2019 2:15 pm
Reply with quote

duplicate info ...

Willy' s fingers were a few minutes faster than mine

probably also the brain icon_biggrin.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Sep 25, 2019 4:36 pm
Reply with quote

Maybe using VPUT and VGET is enough.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Sep 25, 2019 7:31 pm
Reply with quote

NOPE icon_wink.gif

VPUT and VGET work only within the ISPF environment,
what was asked was something working at least at the TSO session level

Willy solution offers a plus, to save the variables in a dataset to carry them across sessions
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts CA7 count with DATE variable CA Products 0
Search our Forums:

Back to Top