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

How to invoke a cics program from another program?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Apr 15, 2010 12:00 pm
Reply with quote

All,

I have to invoke program B from Program A without using TDQ,LINK,XCTL,CALL,MQ,TRANSID(Transaction of Program B). Please let me know if there is any possibilty?

Thanks,
Murali.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Thu Apr 15, 2010 12:04 pm
Reply with quote

START
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Apr 15, 2010 2:21 pm
Reply with quote

START command needs TRANSID. Apart from the above mentioned, Loading PLT Program Listing Table will invoke the program at start of CICS region. Is there any way to invoke the program as mentioned above?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 15, 2010 3:33 pm
Reply with quote

What kind of silliness is this requirement?
Load and branch.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10902
Location: italy

PostPosted: Thu Apr 15, 2010 6:26 pm
Reply with quote

if You tell the requirements, we might offer suggestions
otherwise all You will get are <derogatory adjective> comments on the <derogatory adjective> question icon_biggrin.gif
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Apr 15, 2010 8:00 pm
Reply with quote

Here is my requirement

Program-A - Trans -id KEC1

Program-B should be invoked after the execution of Program A, The Program B shouldn't use CALL,LINK,XCTL,MQPUT(triggering a transaction which invokes Program B after a record is written in MQ), TDQ(Automatic Trigger Level) Transid(START etc).

May be the requirement may be weird, but this was the question asked in a interview. Please let me know if there is any possibilities available.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 15, 2010 8:14 pm
Reply with quote

So, in other words, the transid remains as KEC1, but program B needs to be invoked after program A terminates? If program A is defined in the PCT to transid KEC1 and program A terminates (IE: EXEC CICS RETURN), then I don't understand how this logic path will work.

Osmosis maybe or wishful thinking? icon_eek.gif

Bill
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Apr 15, 2010 8:25 pm
Reply with quote

Have Program-C, started either during CICS initialization or by Program-A itself, wait on an ECB that Program-A will post to upon completion. Once the wait is released, Program-C can then start Program-B's transid.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Thu Apr 15, 2010 8:47 pm
Reply with quote

The answer is "USE A SPOON".
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Thu Apr 15, 2010 8:48 pm
Reply with quote

Sorry. Some stupid interview questions really deserve stupid answers.
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Apr 15, 2010 9:28 pm
Reply with quote

What to do marso these type of question really tumbles my friend who faced this question. Really weird
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Upgrade CICS TS to 6.2: authorization... CICS 0
No new posts PL/1 SEND CICS MAP first time, attrib... CICS 6
No new posts CICS UCTRAN=NO not working, need syst... CICS 3
No new posts CICS-Db2 connection issue CICS 1
No new posts After newcopy the CICS program user f... CICS 7
Search our Forums:


Back to Top