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 

START TRANID

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


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri Jun 24, 2005 10:43 am    Post subject: START TRANID Reply with quote

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


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

PostPosted: Fri Jun 24, 2005 10:58 am    Post subject: Reply with quote

Infoman123,

Since your starting a transaction with TERMID , the named terminal must exist and be available. If the named terminal does not exist when the time interval expires, the START is discarded.

Check this link which explains in detail about the start command.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHJAP4C/1.232?DT=20030108162734

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri Jun 24, 2005 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Tue Jun 28, 2005 3:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Wed Jun 29, 2005 10:15 am    Post subject: Reply with quote

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
View user's profile Send private message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Wed Jun 29, 2005 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Jun 30, 2005 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
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