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

how to invoke a transaction when a map is received from term


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: Mon Jan 31, 2011 12:51 pm
Reply with quote

Hi all,

The below question was asked in an interview.

You are sending a map through a program A via a transaction trna, whne user enters the data, then another transaction trnb should be invoked.
Note:
Trnb should not be executed from Program A using Start Tranid.

What is the alternative way to invoke a transaction when user enters the data?


Screen

Empid:_______

When user enters the employe id trnb shoukd be invoked,based on the condition mentioned above.

Thanks,
Murali
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 31, 2011 4:04 pm
Reply with quote

Another stupid interview question -- why would anyone want to do this?

Set the first four bytes of the map to be trnb (either visible or not) and trna just does a return to CICS. When the enter key is pressed, the first four characters read from the screen become the transaction to execute.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Jan 31, 2011 4:08 pm
Reply with quote

can not believe you have asked this question.

what about the CICS API call RETURN: look for the TRANSID option.
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Mon Jan 31, 2011 4:24 pm
Reply with quote

Program-A should not be used to to trigger any transaction(either Return Transid or Start Tranid). May be the person who conducts the interview might expect CICS Tables to do a Magic.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Jan 31, 2011 6:53 pm
Reply with quote

pkmurali wrote:
Program-A should not be used to to trigger any transaction(either Return Transid or Start Tranid). May be the person who conducts the interview might expect CICS Tables to do a Magic.


Then I agree with Robert:
Another really, really stupid interview question.

but at the same time
both Roberts and my solutions will work,
and they DO NOT TRIGGER a transaction,
the user depressing the enter key or a PF key is triggering the transaction.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Batch install term/printer CICS 2
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts TWA size of the CPLT transaction CICS 0
Search our Forums:

Back to Top