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.
----- 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
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 H Leverich III
(516) 627-3800 x3051
Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives