Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Problem with function Keys usage in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Problem with function Keys usage in REXX
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

Site Director


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

PostPosted: Tue Jun 19, 2007 1:41 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jun 19, 2007 2:57 pm    Post subject:
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    Post subject: How to set the PF keys in Rexx
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: 2360
Location: Israel

PostPosted: Tue Jun 19, 2007 4:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us