REXX call RACF service IRRSPK00 to generate Pass Tickets

IBM's Command List programming language & Restructured Extended Executor
VladGoodman
Posts: 1
Joined: Sun Feb 26, 2023 9:42 pm
Skillset: Db2, IMS, MQ, COBOL, Assembler, CICS, VSAM,
Referer: search

REXX call RACF service IRRSPK00 to generate Pass Tickets

Postby VladGoodman » Mon Feb 27, 2023 1:11 am

Greetings,
I need to develop REXX program that calls RACF service to generate/evaluate Pass Tickets. There is few samples of how to use REXX and RACF services (SYS1.SAMPLiB) - but I since I am pretty new with REXX it is not going smoothly.
The major problem I have is to define GROUP field (1st halfword Length and other 8 bytes some value (such user id, application id etc)
And how do I populate that group field with length and value
Any help is appropriated

Regards,

Vlad

User avatar
sergeyken
Posts: 458
Joined: Wed Jul 24, 2019 10:12 pm
Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
Referer: Internet search

Re: REXX call RACF service IRRSPK00 to generate Pass Tickets

Postby sergeyken » Mon Feb 27, 2023 7:10 pm

Without specific sample of code it's hard to provide any useful advice.
Javas and Pythons come and go, but JCL and SORT stay forever.

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: REXX call RACF service IRRSPK00 to generate Pass Tickets

Postby Pedro » Thu Mar 02, 2023 9:42 am

RACF provides a rexx interface* for various stuff by calling program IRRXUTIL and providing the right input. Though, from my reading, it seems that passtickets do not seem to be supported by IRRXUTIL.

The service for passtickets is IRRSPK00 and is intended to be called from an assembler program. In my honest opinion, calling IRRSPK00 from rexx has some insurmountable issues:
1. You have to provide the addresses of several control blocks.
2. The input parameters are complex and it is not likely that you can set the storage adequately using rexx.

My suggestion is to write an assembler program that calls IRRSPK00 as intended. If you need a rexx component, consider having your assembler program call IRXEXCOM to create a bunch of rexx variables.

for info about IRRSPK00, see RACF Callable Interfaces, SA23-2293.
for info aobut IRXEXCOM, see TSO/E REXX Reference, SA22-7790.

* I am retired now, but worked for IBM for over 35 years. I convinced my IBM colleagues to create the rexx interface for RACF.
Pedro Vera

Blackthorn
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Skillset: JCL, TWS, IBM Utilities
Referer: Found on web

Re: REXX call RACF service IRRSPK00 to generate Pass Tickets

Postby Blackthorn » Fri Mar 17, 2023 8:42 pm

I would just like to say thank-you Pedro for your help in getting IRRXUTIL developed. I love it and use it all the time. It's great to see it still being enhanced today, with recent changes allowing the querying of the RRSF status, for example.

So thank-you very much, it is highly appreciated! :)

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: REXX call RACF service IRRSPK00 to generate Pass Tickets

Postby Pedro » Fri Mar 17, 2023 11:40 pm

re: "So thank-you very much, it is highly appreciated"

You are welcome! :D
Pedro Vera


  • Similar Topics
    Replies
    Views
    Last post