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
 
SIGNAL ON HALT issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: SIGNAL ON HALT issue
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 User


Joined: 01 Sep 2015
Posts: 231
Location: Denmark

PostPosted: Tue Oct 31, 2017 1:19 pm    Post subject:
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    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 Facing issue while executing multi ro... aagarwal88 DB2 6 Tue Oct 02, 2018 8:11 am
No new posts S0C4-X'11' issue - page translation e... ashek15 JCL & VSAM 8 Wed Aug 15, 2018 4:23 am
No new posts Issue While Recovering a Tablespace satish.ms10 DB2 4 Tue Aug 07, 2018 2:54 am
No new posts Facing Issue in Table Reorg satish.ms10 DB2 1 Tue Aug 07, 2018 2:44 am
No new posts IMS DB/DC issue srinianusuya IMS DB/DC 2 Thu Jul 26, 2018 11:52 am

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