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
 
Variable tso ISR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Renato Zangerolami

New User


Joined: 06 Dec 2019
Posts: 26
Location: Brazil

PostPosted: Fri Feb 07, 2020 7:30 pm    Post subject: Variable tso ISR
Reply with quote

I created a variable in 7.3, p (profile). What are the ways that I can use this variable? I tried to call it with ISPF NAME VARIABLE but it didn't work.
Back to top
View user's profile Send private message

Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 340
Location: Denmark

PostPosted: Fri Feb 07, 2020 8:39 pm    Post subject:
Reply with quote

Assuming REXX: ADDRESS ISPEXEC "VGET varname PROFILE". For details see the 'ISPF Services Guide' manual.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2172
Location: Silicon Valley

PostPosted: Sat Feb 08, 2020 11:58 am    Post subject: Reply to: Variable tso ISR
Reply with quote

There are two services:
Code:

Address ISPEXEC
"VPUT  myvar PROFILE"
"VGET  myvar PROFILE"

There is also a VERASE service, but it is not commonly used... most developers just leave the variables lingering forever.

My suggestion is to use VGET first and if you get RC=8 (for variable not found) then you set a default value. If the user changes from the default value, then use VPUT to save the user's setting.
Back to top
View user's profile Send private message
Renato Zangerolami

New User


Joined: 06 Dec 2019
Posts: 26
Location: Brazil

PostPosted: Mon Feb 10, 2020 7:48 pm    Post subject: Reply to: Variable tso ISR
Reply with quote

Thanks for the answers.
can the profile option be used only for my user? Can I create a variable where all users can use it?
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 340
Location: Denmark

PostPosted: Mon Feb 10, 2020 11:36 pm    Post subject:
Reply with quote

Not like that. Create a REXX which everyone can execute. There are ways, one I kinda like is:

Rexx with variables, sample name SETVAR:

Return "v1='Kilroy';v2='was';v3='here'"

Rexx using the variables:

Interpret SetVar()
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL - Array result in single variab... vinu78 COBOL Programming 3 Thu Feb 20, 2020 5:29 pm
No new posts Variable length(Pipe delimter) to Fix... SreekanthMada DFSORT/ICETOOL 8 Mon Jan 06, 2020 4:44 pm
No new posts Can GLobal variable used under TSOE/REXX Kaliragavendran CLIST & REXX 5 Tue Sep 24, 2019 7:16 am
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm
No new posts Move a particular line from a PS file... Jitesh Kumar CLIST & REXX 7 Mon Aug 05, 2019 2:48 am

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