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
 

 

Running a transaction automatically after each logon

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ignich7

New User


Joined: 02 Nov 2005
Posts: 65

PostPosted: Mon Feb 22, 2010 9:13 pm    Post subject: Running a transaction automatically after each logon
Reply with quote

I want a transaction called ABCD to be executed automatically once the user log on to CICS successfully. Please let me know how to do it?

The user initially gets log on screen because GMTRAN is CESN. After the successful logon, I want this ABCD to be executed automatically.

Thanks for your assistance and time in advance :)
Gnana Nicholas
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Mon Feb 22, 2010 9:31 pm    Post subject:
Reply with quote

Why not change GMTRAN?
Back to top
View user's profile Send private message
ignich7

New User


Joined: 02 Nov 2005
Posts: 65

PostPosted: Tue Feb 23, 2010 2:47 am    Post subject:
Reply with quote

I want CESN to be executed first inorder to enable the user to logon with user id and passsword. Once the logon is successful, I want ABCD transaction to be executed automatically.

How would I do that using GMTRAN?
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue Feb 23, 2010 3:39 am    Post subject:
Reply with quote

Write your own Signon transaction.

Set GMTRAN to your transaction ID.


reveiw EXEC CICS SIGNON command for additional information.

caution !! if you are an application programmer, I doubt seriously
that your Tech Support will approve of this..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 23, 2010 3:48 am    Post subject:
Reply with quote

Hello,

Quote:
caution !! if you are an application programmer, I doubt seriously
that your Tech Support will approve of this..
Completely agree - they probably will not. . .

On many systems that support a user being taken directly to "their menu" when they sign on, something to accomplish this is already in place. Suggest you talk with the CICS support people and learn what might be available on your system.
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: Tue Feb 23, 2010 3:55 am    Post subject: Reply to: Running a transaction automatically after each log
Reply with quote

Write an exit-program for exit XSNON (Signon Program-DFHSNP, transid CESN). At the end of the exit-program when everything is good and you're about to return, issue a CALL to a TRUE, passing the name of the transid you'd like to START after the signon is complete.

You can issue CICS API's in a TRUE, but you can't issue CICS API's in an exit program for GLUE XSNON (only XPI's) and that's the problem.

If this seems to be too heavy duty, then address the terminal's TCTUA in the XSNON exit-program and store the name of the transid you need to START in it.

Meanwhile, you have a transaction, which was started via a PLT-PI program and it's rummaging through all the terminal TCTUA's. When it finds a valid transid, it issues a START of this transid and moves SPACES to the TCTUA where it lives, so it won't be started again.

I'm not saying that both of these are ideal, they're just two of many ways to do this.

HTH....

Bill
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 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
No new posts TSO Logon Failing - Acount Not matching SLNewton TSO/ISPF 1 Thu Aug 25, 2016 9:37 pm


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