Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us