IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

long task and its program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
william.kangweiliang

New User


Joined: 26 Sep 2008
Posts: 22
Location: China

PostPosted: Mon Oct 12, 2009 12:25 pm
Reply with quote

Dear all,

I have some question about long task in CICS and it's bind program.

1) what's the working flow between long task and its pgm?
EG: The task will be startup when the cics is started. and Its pgm is invoked as well. then when the pgm go to a return CICS command. What will happen? the task will be invoked once more and the program will go from the top again? or something else?

2)what's the time will be remarked on the prgram's use parameter ('Use(0000000643)')? once or the actual time the program runs?

thx a lot!
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Oct 12, 2009 4:35 pm
Reply with quote

A task will start at CICS startup if that's what's specified in a PLTPI program. Otherwise it can be started by a variety of means - Terminal Input, via DCT triggering, MQ triggering, etc.

When EXEC CICS RETURN is executed, the task ends. At this point, program Use is 1. This is a use counter, not a timestamp. It counts the number of times the program has been used.

Something else must happen to start another instance of the task. Each new instance of the task will increment the program Use (counter) by 1 and will 'start from the top'.

Garry.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top