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

Running a transaction automatically after each logon


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Mon Feb 22, 2010 9:13 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Feb 22, 2010 9:31 pm
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: 66

PostPosted: Tue Feb 23, 2010 2:47 am
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
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

Moderator Emeritus


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

PostPosted: Tue Feb 23, 2010 3:48 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Feb 23, 2010 3:55 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top