MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » June 2008

Re: Wait for one hour and then run



fixed

the credit card processes I have written, the main job
creates a data queue with a unique name,
creates a "session" record in a tran file
submits the comm program - passing queue name as parm
comm program sends card trans & receives response
comm program updates the session record, then writes to the data queue
the main job reads the data queue and gets the answer from session record.
If main job times out on data queue - houston - you got a problem.
The session record is your permanent record of what happened.
What you are missing (trying to use a job queue) - is the data queue.

Jim Franz

----- Original Message ----- From: "Walden H. Leverich" <WaldenL@xxxxxxxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Sent: Thursday, June 05, 2008 4:21 PM
Subject: RE: Wait for one hour and then run


Is there a way to tell sbmjob to wait for one hour?
Or I need to set date and time?
Any better ideas?


I believe you'll have to set the SCDDATE/SCDTIME on the SBMJOB. However,
you realize you're submitting a job per advertising request. Seems ugly
to me.

Why not just record the datetime you go off to the processor in the
table, and the datetime you come back in the table. Then run a single
job hourly (or however often you want) that goes spelunking the table
looking for a non null submit time, and a null completion time.

-Walden

--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact