$JobAuth: Difference between revisions
m (1 revision) |
m (1 revision) |
||
Line 10: | Line 10: | ||
<p class="syntax"><section begin="syntax" />%AUTH = $JobAuth | <p class="syntax"><section begin="syntax" />%AUTH = $JobAuth | ||
<section end="syntax" /></p> | <section end="syntax" /></p> | ||
<p | <p> | ||
</p> | </p> | ||
<p class="caption">%AUTH is set to either 0 or 1.</p> | <p class="caption">%AUTH is set to either 0 or 1.</p> |
Revision as of 00:15, 26 October 2012
Determine if user has authorization for USE $JOB
Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $JobAuth function.
This function can be used to determine if the running user has authorization to issue the USE $JOB command.
The $JobAuth function accepts no arguments and returns either a 0 if the user is not authorized to use $JOB or a 1 if the user is authorized to use $JOB.
Syntax
<section begin="syntax" />%AUTH = $JobAuth <section end="syntax" />
This function can be used in a program that builds JCL to determine if the user is allowed to use the internal reader. $JobAuth works with all security interfaces supported by Model 204.
For example, the code fragment
IF NOT $JobAuth THEN PRINT 'INVALID ATTEMPT TO USE PRIVILEGED SYSTEM' STOP END IF
would STOP if the user was not authorized to use $JOB.
Products authorizing $JobAuth
- Sirius functions
- Fast/Unload User Language Interface
- Janus Open Client
- Janus Open Server
- Janus Sockets
- Janus Web Server
- Japanese functions
- Sir2000 Field Migration Facility