View previous topic :: View next topic
|
Author |
Message |
ElamaranS
New User
Joined: 03 Jul 2008 Posts: 5 Location: Chennai
|
|
|
|
Hi,
What exactly is the way to save ISPF profile after setting few ISPF parameters like PF keys. For example following is the script i have which resets the PF1 Key with "ZOOM" command but i want this to be saved to ISPF profile permanently so that i can see the change after executing the rexx script and typing KEYS command.
/*REXX*/
/***************************************************/
/* THIS MACRO IS USED TO SET PF KEYS. */
/***************************************************/
ADDRESS ISPEXEC
"TBOPEN" PROFILE
"VGET (ZPF01) PROFILE"
ZPF01 = "ZOOM"
"VPUT (ZPF18) PROFILE"
/*"SAVE PROFILE "LIBRARY(ISPPROF)"*/
/*"TBSAVE" PROFILE "LIBRARY(ISPPROF)" */ |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I never tried to mess with ISPPROF directly, but in your example, why did you comment out TBSAVE?
O. |
|
Back to top |
|
|
ElamaranS
New User
Joined: 03 Jul 2008 Posts: 5 Location: Chennai
|
|
|
|
That syntax "TBSAVE" was not working and giving me ISPF error. Thats why i was asking for a syntax or if somebody can correct the syntax for saving the profile, even that should be fine with me.
Regards,
Elamaran S |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
As far as I see it, you can't save your ISPPROF, as it is open the moment you log on to ISPF.
Why can't you change the keys using normal command?
O. |
|
Back to top |
|
|
ElamaranS
New User
Joined: 03 Jul 2008 Posts: 5 Location: Chennai
|
|
|
|
You mean to change the PF key directly without using REXX script.
If yes is your answer, my requirement is to change the PF KEY set up using Rexx script for all the 24 PF keys available with different commands i have. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Still, why can't you do that with the KEYS command???
O. |
|
Back to top |
|
|
ElamaranS
New User
Joined: 03 Jul 2008 Posts: 5 Location: Chennai
|
|
|
|
Absolutely it can be done no doubt for me about that.
But i justed wanted know if it is possible to save the profile using rexx script.
Thanks for your Help!!!
Regards,
Elamaran s |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What is ISPF return code for your TBSAVE? What is in ZERRSM & ZERRLM after you issue TBSAVE?
O. |
|
Back to top |
|
|
ElamaranS
New User
Joined: 03 Jul 2008 Posts: 5 Location: Chennai
|
|
|
|
Below is the received error message:
******************************************************************************
* ISPT034 *
* *
* Table is not open *
* TBSAVE issued for table PROFILE that is not open. *
* *
* *
* *
* *
* *
* *
* Current dialog statement: *
* TBSAVE PROFILE LIBRARY(ISPPROF) *
* *
* Enter HELP command for further information regarding this error. *
* Press ENTER key to terminate the dialog. *
* *
* *
* *
* *
****************************************************************************** |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I believe this message is pretty clear....
O. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
'PROFILE' is an uninitialized variable.
Why VGET at all?
Why set a value for ZPF01 but VPUT ZPF18 instead?
You can make a copy of your profile, work with the new copy, then rename them to replace the old with the new.
Quote: |
Thats why i was asking for a syntax |
Your original post did not ask for the syntax... and if that is what you want, then you should please start by looking at the manual. |
|
Back to top |
|
|
|