The #SECRTT Macro
You generate a new SRTT by using the #SECRTT macro:
The value of the TYPE parameter on the first macro must be INITIAL.
The value of the TYPE parameter on these macros must be ENTRY if the security option is for a resource type (or OCCURRENCE if the security option is for an individual occurrence of a database, task, or program).
If you specify SECBY=EXTERNAL, you must also specify the following:
The value of the TYPE parameter on the last macro must be FINAL.
#SECRTT Assembly
The table is generated and linked only if each #SECRTT statement in the series assembles without error. If one or more statements receives an error, only a listing results.
Note: For complete documentation of the #SECRTT, see #SECRTT.
The RHDCSRTT module should be linked into a secure dataset to prevent unwarranted access to or manipulation of the security system.
#SECRTT Macro Example
#SECRTT TYPE=INITIAL, X
ENVNAME=TEST, X
SVCNUM=235
#SECRTT TYPE=OCCURRENCE, X
RESTYPE=DB, X
RESNAME='CUSTDB', X
SECBY=INTERNAL
#SECRTT TYPE=ENTRY, X
RESTYPE=SYST, X
SECBY=INTERNAL
#SECRTT TYPE=ENTRY, X
RESTYPE=SGON, X
SECBY=EXTERNAL, X
EXTCLS='SYSTEM', X
EXTNAME=(RESNAME)
#SECRTT TYPE=ENTRY, X
RESTYPE=TASK, X
SECBY=INTERNAL
#SECRTT TYPE=ENTRY, X
RESTYPE=SPGM, X
SECBY=EXTERNAL, X
EXTCLS='PROGRAM', X
EXTNAME=(RESNAME)
#SECRTT TYPE=OCCURRENCE, X
RESTYPE=SPGM, X
RESNAME='RHDCBYE', X
SECBY=OFF
#SECRTT TYPE=FINAL
END
Notes on the Example
In this case:
Note: For more information about #SECRTT usage and #SECRTT syntax, see the chapter Syntax for Assembler Macros.
|
Copyright © 2014 CA.
All rights reserved.
|
|