MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CICS START Transaction TIME parm discrepency

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
deepa12
Beginner


Joined: 05 Apr 2005
Posts: 131
Topics: 64
Location: chennai

PostPosted: Tue Nov 22, 2016 10:39 am    Post subject: CICS START Transaction TIME parm discrepency Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Nov 22, 2016 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group