Re: ISPF: How best to change ISPSPROF variables programmatically (was ISPF: How best to change user variable ZRETMINL in ISPSPROF)

2010-08-13 Thread Tidy, David (D)
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


Re: ISPF: How best to change ISPSPROF variables programmatically (was ISPF: How best to change user variable ZRETMINL in ISPSPROF)

2010-08-12 Thread Dave Salt
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.
 
 
 Best regards,
 David TidyTel:(31)115-67-1745
 IS Technical Management/SAP-MfFax:(31)115-67-1762 
 Dow Benelux B.V.  Mailto:dt...@dow.com
 
 -Original Message-
 From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
 Behalf Of Mark Zelden
 Sent: 11 August 2010 19:01
 To: IBM-MAIN@bama.ua.edu
 Subject: Re: ISPF: How best to change user variable ZRETMINL in ISPSPROF
 
 On Wed, 11 Aug 2010 09:30:49 -0500, Jochen Roehrig
 jochen.roeh...@baloise.ch wrote:
 
 Hi Robert
 
 that's it!
 Shame on me: I knew the RETP, but I never recognized the 'OPTIONS'...
 
 Kind regards
 Jochen
 
 
 You may have received a quicker answer if the question was more clear.
 But
 maybe it was clear to everyone but me.  :-)
 
 I thought you wanted a way to either
 
 a) Change the default via customization table for everyone (which you 
 can't because there is no reset value)
 
 b) mass update everyone's ISPF profile because the set a bad default
 in the customization table and already knew you couldn't do the above.
 
 
 Regards,
 
 Mark
 --
 Mark Zelden - Zelden Consulting Services - z/OS, OS/390 and MVS   
 mailto:mzel...@flash.net  
 Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html 
 Systems Programming expert at http://expertanswercenter.techtarget.com/
 
 --
 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
 
 --
 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
  
--
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


Re: ISPF: How best to change ISPSPROF variables programmatically (was ISPF: How best to change user variable ZRETMINL in ISPSPROF)

2010-08-12 Thread Mark Zelden
On Thu, 12 Aug 2010 11:00:50 -0400, Dave Salt ds...@hotmail.com wrote:

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

ISPFVAR PSTAB(ON)



(cross posted to IBM-MAIN and ISPF-L)

I knew of the ISPFVAR command but always use SETTINGS to change
the things I want.   I never thought about trying to use ISPFVAR to
force a split line on with SWAPBAR.  I like swapbar but turning it on
disables the always show split line in SETTINGS.   However,
it looks like  ISPFVAR SPLTLINE(ON) does work to keep it on.  So
now I can have my cake and eat it too.   

I did mention this behavior on ISPF-L when SWAPBAR showed up in
z/OS 1.10, but no one suggested trying ISPFVAR as a workaround.

Thanks!

Regards,

Mark
--
Mark Zelden - Zelden Consulting Services - z/OS, OS/390 and MVS   
mailto:mzel...@flash.net  
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html 
Systems Programming expert at http://expertanswercenter.techtarget.com/

--
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