View previous topic :: View next topic
|
Author |
Message |
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
can not believe you have asked this question.
what about the CICS API call RETURN: look for the TRANSID option. |
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|