Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can GLobal variable used under TSOE/REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Can GLobal variable used under TSOE/REXX
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: 2230
Location: Hampshire, UK

PostPosted: Tue Sep 24, 2019 1:30 pm    Post subject: Reply to: Can GLobal variable used under TSOE/REXX
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 User


Joined: 01 Sep 2015
Posts: 317
Location: Denmark

PostPosted: Tue Sep 24, 2019 2:10 pm    Post subject:
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 www.cbttape.org file 669 and http://harders-jensen.com/wjtech/zprograms.html (newest) handles all kind of variables.
STEMPUSH / STEMPULL from www.cbttape.org file 411 handles stems.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Tue Sep 24, 2019 2:15 pm    Post subject: Reply to: Can GLobal variable used under TSOE/REXX
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: 1329
Location: Israel

PostPosted: Wed Sep 25, 2019 4:36 pm    Post subject: Reply to: Can GLobal variable used under TSOE/REXX
Reply with quote

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

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Wed Sep 25, 2019 7:31 pm    Post subject: Reply to: Can GLobal variable used under TSOE/REXX
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Running a REXX exec program using ZOSMF Sakthi344 CLIST & REXX 1 Tue Oct 15, 2019 3:13 pm
No new posts REXX VSAM Harold Barnes CLIST & REXX 2 Sat Oct 05, 2019 2:38 pm
No new posts REXX for Reading SMF type 70-1 AdrielGB Testing & Performance analysis 6 Sat Oct 05, 2019 3:03 am
No new posts REXX and 3270 highlighting Harold Barnes CLIST & REXX 3 Fri Sep 20, 2019 5:26 am
No new posts REXX EXECIO STEM No newline Harold Barnes CLIST & REXX 3 Tue Sep 17, 2019 6:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us