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
 

 

using CEE3DLY to delay

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Thu Apr 14, 2011 5:10 am    Post subject: using CEE3DLY to delay
Reply with quote

Has anyone used the LE routine CEE3DLY to invoke a delay in a program? Any problems or bad experiences with it?
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 14, 2011 6:02 am    Post subject: Reply to: using CEE3DLY to delay
Reply with quote

Introduced with z/OS 1.9, CEE3DLY uses seconds for the DELAY interval, whereas, CEE3DLYM uses milliseconds for the DELAY interval.

Not aware of any issues, but the more finite the interval (milliseconds), the more you're in control.

1 second = 1000 milliseconds.

Bill
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Thu Apr 14, 2011 6:46 pm    Post subject:
Reply with quote

Thanks. I checked the reference manual. The other routine is called CEEDLYM. Not sure why IBM decided to drop the "3" out of the name.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 14, 2011 6:56 pm    Post subject:
Reply with quote

keep the program name to 7 chars.
Back to top
View user's profile Send private message
vadim vashchenko

New User


Joined: 21 Mar 2011
Posts: 13
Location: usa

PostPosted: Thu Apr 14, 2011 7:37 pm    Post subject:
Reply with quote

Works with no problems in batch. I know I can call it from CICS, but EXEC CICS DELAY is more convenient... icon_smile.gif
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 14, 2011 8:14 pm    Post subject: Reply to: using CEE3DLY to delay
Reply with quote

I would NOT encourage usage of a DELAY API in CICS, although there are times when there is no other choice.

In the CICS DELAY, the minimum interval is one second, which is an eternity in CICS.

Having said this, I have never tried to use CEEDLYM in CICS, which has a millisecond interval. But, in a CICS DELAY API, another asynchronous task can CANCEL this DELAY early, via the DELAYED Tasks REQID and TRANSID, which needs to be known by the asynchronous task. That would be ideal to prematurely cancel the DELAY. You want throughput to be as quick and uninterrupted in CICS.

Just my 2 cents....

Bill
Back to top
View user's profile Send private message
surya anem

New User


Joined: 20 Dec 2007
Posts: 54
Location: Hyderabad

PostPosted: Tue Jun 21, 2011 11:32 am    Post subject: Reply to: using CEE3DLY to delay
Reply with quote

Hi,

I am using this service CEE3DLY for issuing a wait in my cobol program. It seems to be working fine as expected.

But i have found the following definition in the IBM workshop "CEE3DLY provides a service for Language Environment-conforming applications that suspends the processing of the active enclave for a specified number of seconds."

Can you please let me know what an active enclave is?

If i am using a cobol program and JCL, is it just that the job waits for the specified time.

Thanks,
Surya
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jun 21, 2011 6:47 pm    Post subject: Re: Reply to: using CEE3DLY to delay
Reply with quote

surya anem wrote:
Can you please let me know what an active enclave is?
"enclave" means A distinctly bounded area enclosed within a larger unit -- so if you're using a sub-program (PGMSURYA), for instance, to issue the delay then, when PGMSURYA is called, this sub-program, PGMSURYA, is active, in memory, so it's an "active enclave" for the given process.

They are manuals, so they try to use general-terms.

Hope this helps.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 21, 2011 6:58 pm    Post subject:
Reply with quote

possibly an IBM manual's definition of enclave would be more helpful.

here is another reference to enclave in the same manual.

and last but not lease, a search list for enclave in the Programming Guide.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 21, 2011 7:58 pm    Post subject: Reply to: using CEE3DLY to delay
Reply with quote

In issuing a DELAY in CICS (using the CICS-API), you can specify a well-known "REQID". With that, another concurrent task can CANCEL this DELAY early, using the REQID instead of waiting until the DELAY interval expires.

Of course, the issuing task can't cancel itself.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Tue Jun 21, 2011 9:23 pm    Post subject:
Reply with quote

The Workload Manager manual defines it as
Quote:
enclave. A transaction that can span multiple dispatchable units (SRBs and tasks) in one or more address spaces and is reported on and managed as a unit.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is there any command in Cobol (Batch ... sravindra_s COBOL Programming 11 Wed Jun 25, 2014 11:08 am
No new posts Automation of batch delay in prod. samratganguly JCL & VSAM 3 Sat Nov 23, 2013 2:16 pm
No new posts SMS4154I message -will this add delay Furor JCL & VSAM 3 Tue Feb 19, 2013 4:39 pm
No new posts Equivalent 'CICS DELAY' function in... dejunzhu COBOL Programming 13 Mon Sep 03, 2012 12:42 pm
No new posts Using IBM utility CEE3DLY to invoke a... Sumit Jindal COBOL Programming 6 Sat Apr 21, 2012 10:53 pm


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