Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to invoke a cics program from another program?

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

Active User


Joined: 15 Dec 2005
Posts: 236

PostPosted: Thu Apr 15, 2010 12:00 pm    Post subject: How to invoke a cics program from another program?
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: 6966
Location: porcelain throne

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

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

Active User


Joined: 15 Dec 2005
Posts: 236

PostPosted: Thu Apr 15, 2010 2:21 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 15, 2010 3:33 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Thu Apr 15, 2010 6:26 pm    Post subject: Reply to: How to invoke a cics program from another program?
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: 236

PostPosted: Thu Apr 15, 2010 8:00 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Apr 15, 2010 8:14 pm    Post subject: Reply to: How to invoke a cics program from another program?
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: 3158
Location: Tucson AZ

PostPosted: Thu Apr 15, 2010 8:25 pm    Post subject:
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: 1226
Location: Israel

PostPosted: Thu Apr 15, 2010 8:47 pm    Post subject:
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: 1226
Location: Israel

PostPosted: Thu Apr 15, 2010 8:48 pm    Post subject:
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: 236

PostPosted: Thu Apr 15, 2010 9:28 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us