View previous topic :: View next topic |
Author |
Message |
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Fri Jun 24, 2005 10:43 am Post subject: START TRANID |
|
|
Hi,
I need an info regarding the exec cics start tranid command.
I have a cics program with tran id ABCD and its having 1 screen.I have given an option of starting the next transaction in the top of my screen.For this i am doing a EXEC CICS start tranid(XXXX)
termid(eibtermid)
END-EXEC
xxxx is the tran id enetered by the user.
its working as i desired. But my doubt is,if the user types XXXX, it executes the tran XXXX at that time what is happening to the previous task initiated by using ABCD. Will it terminate or???
please advise |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Fri Jun 24, 2005 12:25 pm Post subject: |
|
|
Kolusu,
Thanx for the link.I understood the options of start command.
But still some confusion exists.
ie:- I am typing a tran id ABCD first,so as per my understanding a task is initiated now.let this be Task 1. ABCD corresponds to the pgm ABCDPGM. In ABCDPGM i am starting another transation WXYZ.Thi WXYZ is also started with the same terminal id of ABCD. so i think now a new task is initaiated ie TASK2. so at this time what is happening to this TASK1. Is it ended or will the control will be back in the program ABCDPGM after starting the task WXYZ.
please clarify. |
|
Back to top |
|
|
Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Tue Jun 28, 2005 3:55 pm Post subject: |
|
|
infoman123,
Are you coding conversationally?. The first tran id ABCD has 1 screen. What do you do after the screen is displayed. Do you pass control back to CICS with RETURN or retain control and continue after you hit a PF key.
Regards,
Manas |
|
Back to top |
|
|
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Wed Jun 29, 2005 10:15 am Post subject: |
|
|
i am doing this transaction in pseudo conversation.
the tran id ABCD is started depending upon the pf keys prressed from the tran WXYZ |
|
Back to top |
|
|
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Wed Jun 29, 2005 10:16 am Post subject: |
|
|
infoman123 wrote: | i am doing this transaction in pseudo conversation.
the tran id ABCD is started depending upon the pf keys prressed from the tran WXYZ |
sorry its otherway around,the tran WXYZ is started based on the pf keys pressed from the tran ABCD |
|
Back to top |
|
|
Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Thu Jun 30, 2005 10:13 am Post subject: |
|
|
I guess you are confusing between tasks and transaction control here. A task is a logical unit of work that is initiated and scheduled by CICS. Individual transactions have no control over a CICS task. Basically we can say that a transaction is a means to tell CICS to schedule a task.
Now, a task begins when CICS gives control of the unit of work to a particular transaction(when you invoke the transaction) and ends only when control is returned back to CICS. There may be "n" number of LINKS, XCTLs etc. within the task but the task will end only when control is returned back to CICS (by issuing an EXEC CICS RETURN at the highest logical level of program).
Now, when you do a START TRANS, you tell CICS to schedule a new task for the transaction that is to be initiated. Hence, in your case CICS will schedule a new task for transaction XYZ. But the task for transaction ABC is still active since you have not returned control to CICS for ABC. Unless you issue a return from ABC after starting the transaction XYZ, both the tasks will be running simultaneously.
Hope that answers your question.
Regards,
Manas |
|
Back to top |
|
|
|
|