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

Save value of a variable between two CLIST calls


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

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Sat May 12, 2007 3:05 am
Reply with quote

I use a CLIST many times to search strings in a program.
Sometimes, I whish to restore the value of a number line obtained in a previous call. Are there special variables that can save the value between two CLIST calls or do I have to create a QSAM file just for that ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat May 12, 2007 12:42 pm
Reply with quote

To save

ISPEXEC VPUT (var1 var2 var3) PROFILE

To retrieve use VGET instead of VPUT
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Sat May 12, 2007 3:40 pm
Reply with quote

Thank you, I'll try it on monday.

How long are saved the variables ?
During all the TSO session time ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun May 13, 2007 3:52 pm
Reply with quote

I use profile, so that they are stored in my ISPF profile dataset, so they are available until you delete them
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Tue May 15, 2007 3:17 am
Reply with quote

I've tested it today, it goes smoothly !
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Variable Output file name DFSORT/ICETOOL 8
Search our Forums:

Back to Top