MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting the RACF user Id in a program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
shootingstar
Beginner


Joined: 19 Sep 2004
Posts: 14
Topics: 11
Location: Dallas, TX

PostPosted: Thu Jan 20, 2005 8:45 pm    Post subject: Getting the RACF user Id in a program Reply with quote

Is it possible to determine what RACF id a program is running under? I user the RACF calls about 15 yrs ago but don't remember much about the calls. I was hoping the ID hides in an MVS control block somewhere. For maintenance reasons I'd prefer to write the program in COBOL but assembler is OK if there is no other way.
The program in question runs as a sub-task within the NDM address space. I occasionally see a failure related to security, but it does not show up as a RACF error anywhere. I am using the Call Attachment Facility of DB2 and the connect is failing for security reasons. I want to display the RACF-id associated with the requestor when that error occurs.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jan 20, 2005 8:51 pm    Post subject: Reply with quote

Check the acee control block. I think it is in there. (google for acee & you'll probably find the details if I am right).
Back to top
View user's profile Send private message Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jan 20, 2005 8:53 pm    Post subject: Reply with quote

Oh wait... I'm not familiar with that environment. The acee may reflect the address space itself.
Back to top
View user's profile Send private message Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Jan 21, 2005 12:45 pm    Post subject: Reply with quote

Check this URL:

http://gsf.home.comcast.net/tools/cob2job.txt

It may help.
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Tue Jan 25, 2005 3:04 am    Post subject: Reply with quote

Hi,

PL/1 solution:
Code:

/* PREFIXED SAVE AREA, liegt fix auf Adress ZERO / SYSNULL */
DCL 1 PSA             BASED(SYSNULL()),
       2 FILLER       CHAR(548),
       2 PSAAOLD      PTR      ;

/* ADRESS SPACE CONTROL BLOCK */
DCL 1 ASCB            BASED(PSA.PSAAOLD) ,
       2 FILLER       CHAR(108) ,
       2 ASCBASXB     PTR   ;

/* ADRESS SAPCE EXTENSION BLOCK */
DCL 1 ASXB            BASED(ASCB.ASCBASXB) ,
       2 FILLER       CHAR(192) ,
       2 ASXBUSER     CHAR(7)   ;  /* User-ID fuer die Job oder  */
                                   /* Session ausgefuehrt wird.  */
                                   /* Linksbuendig gefuellt mit  */
                                   /* HEX '40' = BLANK gepadded. */
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group