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

Kill a REXX program in SLEEP mode LOOP


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

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Thu Oct 28, 2010 1:01 am
Reply with quote

Hi,

I mistakely gave a wrong dataset name for the below rexx routine.

DO UNTIL SYSDSN("'"DSN1"'") = 'OK'
CALL SYSCALLS('ON')
ADDRESS SYSCALL
"SLEEP" 1
CALL SYSCALLS 'OFF'
END

Now the procedure keeps on executing, displaying error messages.

Is there any way to kill this routine!!

Thanks
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Oct 28, 2010 1:07 am
Reply with quote

did you try the ATTN key? In PCOMM emulator, you get it by right clicking.
Back to top
View user's profile Send private message
Anand Kumar

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Thu Oct 28, 2010 1:21 am
Reply with quote

Hi Pedro,

It ended automatically.

Thank you.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Oct 28, 2010 9:31 am
Reply with quote

FYI. I recommend you change to this:
Code:

CALL SYSCALLS('ON')
ADDRESS SYSCALL
DO UNTIL SYSDSN("'"DSN1"'") = 'OK'
"SLEEP" 10
END
CALL SYSCALLS 'OFF'
 

Less overhead.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 28, 2010 11:54 am
Reply with quote

I would actually recommend that you DO NOT use a SLEEP process in your REXX.

Please explain why you must do whatever you are doing this way.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 28, 2010 12:15 pm
Reply with quote

what if You gave the right dataset and there was a looooooog delay in having it created!

exactly the same situation.

I wonder about people stubbornness in using the practice of <artificial> delays icon_confused.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 28, 2010 12:42 pm
Reply with quote

Thanks Enrico, I didn't really notice the waiting for creation part

Of course, the correct method would be to use the scheduling software in stalled at the site, but hey, who are we to disagree with the chosen method of implementation.
Back to top
View user's profile Send private message
Anand Kumar

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Fri Oct 29, 2010 1:05 pm
Reply with quote

Hi,

I just did this for my internal testing when developing a job. I removed the SLEEP now.

Thank you,
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top