Hi Dave,

That helps enormously - thanks! 


Best regards,
David Tidy                                      
Dow Benelux B.V.
                

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
Behalf Of Dave Salt
Sent: 12 August 2010 17:01
To: IBM-MAIN@bama.ua.edu
Subject: Re: ISPF: How best to change ISPSPROF variables
programmatically (was ISPF: How best to change user variable ZRETMINL in
ISPSPROF)

You can manually turn Tab to Point and Shoot on or off by entering this
command on any ISPF command line:

ISPFVAR PSTAB(ON)


You can turn TPS on or off programatically by doing this: 

address ispexec                                        
"CONTROL ERRORS RETURN"                                
"VGET (ZTPS) PROFILE"                                  
if ztps = "Y" then do                                  
   say "Tab to point-and-shoot was on; turning it off" 
   onoff = "OFF"                                       
end                                                    
else do                                                
   say "Tab to point-and-shoot was off; turning it on" 
   onoff = "ON"                                        
end                                                    
"SELECT PGM(ISPOPT) PARM(PSTAB("onoff"))"              
if rc = 0 then say "Tab to point-and-shoot is now "onoff   
else say rc zerrsm zerrlm                              
EXIT                                                   

 

Hope that helps,

Dave Salt

SimpList(tm) - try it; you'll get it! 

http://www.mackinney.com/products/program-development/simplist.html  



> Date: Thu, 12 Aug 2010 09:16:55 +0200
> From: dt...@dow.com
> Subject: ISPF: How best to change ISPSPROF variables programmatically
(was ISPF: How best to change user variable ZRETMINL in ISPSPROF)
> To: IBM-MAIN@bama.ua.edu
> 
> Hi,
> 
> I was actually hoping to see a response to something more similar to
> Mark's interpretation. In particular I wanted a programmatic (REXX)
way
> to (re)set the "tab to point and shoot fields" on the way in to
> TSO/ISPF. This in particular because MXI turns it on, but of course if
> you time out, it is left in that state (MXI does clean it up on the
way
> out normally). The variable is ZTPS (values 'N' or 'Y'). 
> 
> I do see that I can just edit the ISPSPROF member to change it, but
that
> does seem inelegant and (I think) would have to be done before
invoking
> ISPF to be properly effective.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to