Re: Time Parameter

2010-05-18 Thread Elardus Engelbrecht
Michel Castelein wrote: Note that z/OS includes a ready-to-use SLEEP program. Yeah, the BPX1SLP. It is using the STIMERM macro. Or use this without all those SYSCALL and SYSCALLS things: /* REXX */ SAY 'ZZZ AT ' TIME() CALL SLEEP 5 SAY 'YAWN AT ' TIME()

Re: Time Parameter

2010-05-18 Thread Elardus Engelbrecht
Elardus Engelbrecht wrote: [ ... some rubbish ... ] Please disregard my previous post, the sleep function in my rexx is not the correct one as intended. Michel, you are 100% correct and thanks for your post and the SUBCOM statements. Sorry to all Groete / Greetings Elardus Engelbrecht

Re: Time Parameter

2010-05-18 Thread Peter Nuttall
To IBM-MAIN@bama.ua.edu cc Subject Re: Time Parameter Elardus Engelbrecht wrote: [ ... some rubbish ... ] Please disregard my previous post, the sleep function in my rexx is not the correct one as intended. Michel, you are 100% correct and thanks for your post and the SUBCOM statements

Re: Time Parameter

2010-05-18 Thread Matan Cohen
Elardus Engelbrecht elardus.engelbre...@sita.co.za Sent by: IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu 18/05/2010 11:30 AM Please respond to IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu To IBM-MAIN@bama.ua.edu cc Subject Re: Time Parameter Elardus Engelbrecht

Re: Time Parameter

2010-05-18 Thread Hal Merritt
Here's a variation that works for me: ADDRESS TSO BPXBATCH sh sleep 30 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Peter Nuttall Sent: Tuesday, May 18, 2010 4:42 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Time Parameter To my

Re: Time Parameter

2010-05-18 Thread Paul Gilmartin
On Tue, 18 May 2010 09:45:11 -0500, Hal Merritt wrote: Here's a variation that works for me: ADDRESS TSO BPXBATCH sh sleep 30 And why would you prefer to: o Issue a TSO command, which o Executes a load module, which o Forks an address space, which o Execs a shell process, which o Forks an

Re: Time Parameter

2010-05-18 Thread Hal Merritt
...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Tuesday, May 18, 2010 10:21 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Time Parameter On Tue, 18 May 2010 09:45:11 -0500, Hal Merritt wrote: Here's a variation that works for me: ADDRESS TSO BPXBATCH sh sleep 30 And why would you prefer to: o Issue a TSO

Re: Time Parameter

2010-05-18 Thread Paul Gilmartin
On Tue, 18 May 2010 10:26:17 -0500, Hal Merritt wrote: The *nix function I used should be availble to all. I see it much the opposite. My preference: -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Tuesday, May 18,

Re: Time Parameter

2010-05-17 Thread Matan Cohen
i think the best way to accomplish that is to perfom the check of 30 minute in the rexx (in case you don't want it to go to sleep) if your rexx performing somthing in this 30 minutes you should add a check in it of the time like this: RC = TIME(R) SECS = 1800 /* 1800 second you want them to

Re: Time Parameter

2010-05-17 Thread Paul Gilmartin
On Mon, 17 May 2010 17:57:55 +0300, Matan Cohen wrote: i think the best way to accomplish that is to perfom the check of 30 minute in the rexx (in case you don't want it to go to sleep) if your rexx performing somthing in this 30 minutes you should add a check in it of the time like this: RC =

Re: Time Parameter

2010-05-17 Thread Nick Varley
May 2010 15:58 To: IBM-MAIN@bama.ua.edu Subject: Re: Time Parameter i think the best way to accomplish that is to perfom the check of 30 minute in the rexx (in case you don't want it to go to sleep) if your rexx performing somthing in this 30 minutes you should add a check in it of the time like

Re: Time Parameter

2010-05-17 Thread Terry Sambrooks
Hi Matan, With regard to your post on this subject which included: SNIPPET RC = TIME(R) SECS = 1800 /* 1800 second you want them to pass */ DO FOREVER N = TIME(E)/*get the time in second which was pass */ IF N = SECS THEN LEAVE END /SNIPPET As Dustin Hoffman said in Hook, bad

Re: Time Parameter

2010-05-17 Thread Michel Castelein
On Mon, 17 May 2010 16:59:54 +0100, Nick Varley nick.var...@metron.co.uk wrote: (snip) Anyway, if you want a simple SLEEP program, I can mail you one (it's in Assembler and is free, with NO support offered under any circumstances) Note that z/OS includes a ready-to-use SLEEP program. A few

Re: Time Parameter

2010-05-17 Thread Ron Hawkins
Automation software and loops. Not quite on the topic, but I remember when some Brainiac implemented automated responses to IEF238D and IEF433D. We lost almost 25% of a 400E while Net/Master replied WAIT and then NOHOLD as fast as it could... Yes, waiting is far more efficient. A loop of this

Re: Time Parameter

2010-05-16 Thread Bruce Hewson
Hi Ravi, The TIME parameter in JCL is CPU time, not elapsed time. I use this REXX code to do what you are trying:- Safe_Alloc: Procedure Parse Arg file_name,dataset_name

Re: Time Parameter

2010-05-16 Thread Ted MacNEIL
Address TSO 'SLEEP 1000' You can use a built in OMVS/USS sleep command. This will give you 10 seconds: call syscalls 'ON' address SYSCALL sleep 10 call syscalls 'OFF' - Too busy driving to stop for gas!

Re: Time Parameter

2010-05-16 Thread Paul Gilmartin
On Sun, 16 May 2010 00:59:59 -0500, Bruce Hewson wrote: Address TSO 'SLEEP 1000' ??? I find no such command in: URL: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ikj4c5a1 Title: z/OS V1R11.0 TSO/E Command Reference Document Number: SA22-7782-12 -- gil

Re: Time Parameter

2010-05-16 Thread Paul Gilmartin
On Sun, 16 May 2010 07:31:24 +, Ted MacNEIL wrote: call syscalls 'ON' address SYSCALL sleep 10 call syscalls 'OFF' However, an expert has advised: Linkname: mvs...@www2.marist.edu post from w...@us.ibm.com : URL: http://www2.marist.edu/htbin/wlvtype?MVS-OE.35369 I do not

Re: Time Parameter

2010-05-16 Thread Bruce Hewson
Hi Gil, that is correct, but in my defence I quote my original post:- Where SLEEP and QUERYENQ are local programs. On Sun, 16 May 2010 09:53:44 -0500, Paul Gilmartin paulgboul...@aim.com wrote: On Sun, 16 May 2010 00:59:59 -0500, Bruce Hewson wrote: Address TSO 'SLEEP 1000' ??? I find

Time Parameter

2010-05-15 Thread Ravi Kumar
Hi Team, Any idea where I am missing point.. I am running a Rexx exec in batch job which check the ENQ on the dataset every 6 second and idea is to do continuously in loop till the Time parameter on the job doesn't complete..say for example I have idea for 30 minute however during testing I

Re: Time Parameter

2010-05-15 Thread Terry Sambrooks
Hi Ravi, Could it be that the TIME Parameter is CPU time, not wall clock time. It is unlikely that your REXX code would use 1 second of CPU, but if we assume it did, then the elapse time for the job would be in the order of 30 x 7, or 3mins 30 seconds. SNIPPET I am running a Rexx exec in batch

Re: Time Parameter

2010-05-15 Thread Paul Gilmartin
On Sat, 15 May 2010 06:17:22 -0500, Ravi Kumar wrote: I am running a Rexx exec in batch job which check the ENQ on the dataset every 6 second and idea is to do continuously in loop till the Time parameter on the job doesn't complete..say for example I have idea for 30 minute however during