View previous topic :: View next topic
|
Author |
Message |
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
Hi,
Anyone can tell me how to populate the 'Current mainframe userid' ( char (7) ) in the online screen.. Are we having any function for it?? |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Use IO PCB - field USERID |
|
Back to top |
|
|
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
Hi ,
I found the answer for it ..the right way to get the mainframe user is
MFLD (CURUSER,LTNAME)
hope it will help u in the future!! |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
It really depends on how your IMS DC program gets executed and also what exactly you do with USERID info.
If the program is invoked from MFS then MFS userid field can be used. However if IMS DC program is invoked by a transcation code then you got to use IO PCB User id field. |
|
Back to top |
|
|
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
Hi Devzee,
Its really a valid one .I am triggering my program through transaction id only and i found that while triggering from the MFS it is giving Terminal id instead of user id .Thanks for your inputs |
|
Back to top |
|
|
|