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
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm


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