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: 2455
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: 712
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: 10872
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: 10872
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top