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

SIGNAL ON HALT issue


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

New User


Joined: 15 Jan 2016
Posts: 7
Location: uk

PostPosted: Fri Oct 20, 2017 6:56 pm
Reply with quote

Been looking through manuals and other posts about how to use SIGNAL ON HALT. Unless i'm missing some then SIGNAL ON HALT is meant to return control back to the REXX code for you to handle the condition. Do I have this right?

If so it doesn't appear to be working or I have something wrong as all it will do is give me the "Enter HI to interrupt" message. So code looks roughly like
Code:

signal on halt                                           
"ISPEXEC VGET ZPANELID"   /* GET THE CURRENT PANELID */   
do forever                                               
  call updtarg                                           
  "ISPEXEC control display lock"                         
  "ISPEXEC display panel("ZPANELID")"                     
                                           
end                                                       
halt: say 'you hit attention'

I never get to the halt label. I have tried checking that ATTENTION is mapped to the key I'm hitting, even re-mapped it elsewhere.

What am I doing wrong?
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Tue Oct 31, 2017 1:19 pm
Reply with quote

Well, the interrupt would be in the panel processing, not in the REXX code. When you hit the attention key (PA1 by default), you get an ATTN interrupt, not an external interrupt. And as I read the ISPF manual you can trap an ATTN in CLIST, but not in REXX. An ATTN while running REXX terminates the REXX pgm.
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top