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
 

 

Kill a REXX program in SLEEP mode LOOP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Kill a REXX program in SLEEP mode LOOP
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

Senior Member


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

PostPosted: Thu Oct 28, 2010 1:07 am    Post subject: Reply to: Kill a REXX program in SLEEP mode LOOP
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    Post subject: Reply to: Kill a REXX program in SLEEP mode LOOP
Reply with quote

Hi Pedro,

It ended automatically.

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

Senior Member


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

PostPosted: Thu Oct 28, 2010 9:31 am    Post subject: Reply to: Kill a REXX program in SLEEP mode LOOP
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 28, 2010 11:54 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Oct 28, 2010 12:15 pm    Post subject: Reply to: Kill a REXX program in SLEEP mode LOOP
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 28, 2010 12:42 pm    Post subject:
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    Post subject: Reply to: Kill a REXX program in SLEEP mode LOOP
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    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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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