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: 2453
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 User


Joined: 01 Sep 2015
Posts: 416
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
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: 1348
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
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 Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
No new posts A command to change LRECL of an exist... JCL & VSAM 7
No new posts Using REXX to access SDSF; What am I ... CLIST & REXX 38
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 2
Search our Forums:

Back to Top