View previous topic :: View next topic |
Author |
Message |
deepa12 Beginner
Joined: 05 Apr 2005 Posts: 131 Topics: 64 Location: chennai
|
Posted: Tue Nov 22, 2016 10:39 am Post subject: CICS START Transaction TIME parm discrepency |
|
|
Consider the following code
Code: |
01 WS-SCHEDULE-TIME PIC S9(7) COMP-3
MOVE 060000 TO WS-SCHEDULE-TIME
EXEC CICS
START
TRANSID (WS-MY-TRAN)
TIME (WS-SCHEDULE-TIME)
REQID (WS-REQID)
FROM (WS-PARM-AREA)
NOHANDLE
END-EXEC |
When the time is 00:08:00 say i.e 8 mins in the morning, we are trying to execute the above code
CICS is considering this as an expired time. So it is trying to start the transaction immediately when we thought it should actually trigger at 6AM in the morning i.e after 5 hrs 52 mins
Could any one help me understand why it happens this way
Such is not the case if we move
Code: |
MOVE 120000 TO WS-SCHEDULE-TIME
|
And current time is say 11:40 am _________________ deepa |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
Posted: Tue Nov 22, 2016 11:11 am Post subject: |
|
|
deepa12,
If you have read the documentation of START TRANSACTION you would have found this piece of information
CICS START command summary wrote: |
Important: There is a 6-hours rule, if the START gets triggered at any time within 6 hours after the time specified on the START, it executes immediately. This happens regardless of whether the previous 6 hours includes a midnight. To illustrate here are some examples:
EXEC CICS START TIME(123000) This command, issued at 05:00 or 07:00 on Monday, expires at 12:30 on the same day.
EXEC CICS START TIME(020000) This command, issued at 05:00 or 07:00 on Monday expires immediately because the specified time is within the preceding 6 hours.
For more information, see Expiration times. |
Why don't you use AT or AFTER parms instead of TIME parm?
Check this link which explains in detail about the above mentioned parms
http://www.ibm.com/support/knowledgecenter/SSGMCP_5.2.0/com.ibm.cics.ts.applicationprogramming.doc/commands/dfhp4_start.html _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|