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 transaction when a map is received from term

 
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: Mon Jan 31, 2011 12:51 pm    Post subject: how to invoke a transaction when a map is received from term
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: 8003
Location: Bellevue, IA

PostPosted: Mon Jan 31, 2011 4:04 pm    Post subject:
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    Post subject:
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: 236

PostPosted: Mon Jan 31, 2011 4:24 pm    Post subject:
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    Post subject:
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    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 INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm


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