On Tue, 15 Jul 2025 16:53:26 +0000, Steely.Mark <[email protected]> wrote:

>*-- SET POINTER TO ENTITY (FIXED)
>         LA    R1,ENTITY
>         RACROUTE REQUEST=AUTH,ENTITY=(R1),CLASS='UR2',ATTR=READ,      X
>               WORKA=WORKAREA
>*              STATUS=ACCESS,WORKA=WORKAREA
>
>ENTITY   DC    C'APP.DATA'      RESOURCE NAME
>         DC    X'00'            NULL TERMINATOR (OPTIONAL)

1. R1 should be avoided because R0, R1, R14 & R15 are used internally by 
RACROUTE. Why not code ENTITY=ENTITY?

2. Resource names are NOT null terminated. The resource name length must match 
the class definition. I'm not familiar with classes UR1 & UR2. Class="DATASET" 
has a length of 44 which means the resource name must be 44 bytes (no less and 
no more).

3. Alternatively, specify ENTITYX= because it will work for all classes that 
are not shorter than the specified resource name.

4. If I remember correctly, STATUS=ACCESS returns user's access, ignores the 
ATTR= and bypasses audit. I suggest removing this argument unless you need it.

5. Since I don't know the UR1 & UR2 class attributes, I suggest starting with 
something simple like CLASS='DATASET'. Once you get it working, proceed with 
UR1 & UR2.

6. In theory, authorization should not be required but you might try AC(1) from 
an authorized library. Maybe STATUS=ACCESS requires running authorized. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to