View previous topic :: View next topic
|
Author |
Message |
Anand Kumar
New User
Joined: 29 Aug 2007 Posts: 24 Location: chennai
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
did you try the ATTN key? In PCOMM emulator, you get it by right clicking. |
|
Back to top |
|
|
Anand Kumar
New User
Joined: 29 Aug 2007 Posts: 24 Location: chennai
|
|
|
|
Hi Pedro,
It ended automatically.
Thank you. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Anand Kumar
New User
Joined: 29 Aug 2007 Posts: 24 Location: chennai
|
|
|
|
Hi,
I just did this for my internal testing when developing a job. I removed the SLEEP now.
Thank you, |
|
Back to top |
|
|
|