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

Problem with function Keys usage in REXX


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

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Tue Jun 19, 2007 1:17 pm
Reply with quote

Hi,

I was trying use function key intervention in my rexx program using the syntax.

"ISPEXEC VGET (ZPFKEY) ASIS"
if ZPFKEY ='PF03' then exit

But this intervention is working for only PF KEys PF03 and PF15.

But when im trying to intervene PF01 with my help feature, it is not going in to the routine i wrote but rather going to default help routine in TSO.

So this means PF keys intervention works only for PF03 and PF15 keys.

Or any syntax needs to be added in Rexx program for PF01 keys

Regards,
Raam
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2007 1:41 pm
Reply with quote

Hello,

You told the program what to do when "PF03" is detected.

What did you tell the program to do when any other PF is detected (i don't see anything)?

Is there more code that you did not post?
Back to top
View user's profile Send private message
raam

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Tue Jun 19, 2007 1:56 pm
Reply with quote

Hi,

Here is the part of code:

"ISPEXEC DISPLAY PANEL(TDPN0001)"
"ISPEXEC VGET (ZPFKEY) ASIS"
if ZPFKEY ='PF03' then exit
if ZPFKEY ='PF01' then
do
address ispexec
"EDIT DATASET('"TLIFE01.TEST.DATEFILE"')"
iterate
end

In this PF03 is working, But PF01 is not working.

But if i use PF15, in the place of PF01, the Edit dataset is working properly.

What needs to be done here?

Regards,
Elamaran S
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jun 19, 2007 2:57 pm
Reply with quote

The PF03 "exit" worked not because of your REXX, it worked because it was pre-allocated to END.

PF15 worked because it was not pre-allocated to any command.

Try to set the PF keys before invoking your REXX, or try using KEYLIST.


O.
Back to top
View user's profile Send private message
raam

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Tue Jun 19, 2007 3:25 pm
Reply with quote

Hi,

Please let me know the syntax to set PF keys.

As u pointed, PF15 is pre-alloted to end and not blank.

Regards,
Elamaran S
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jun 19, 2007 4:10 pm
Reply with quote

Something like this:
Code:
ZPF04 = 'END'
ADDRESS ISPEXEC "VPUT ZPF04 PROFILE"


O.
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top