$JobAuth: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
Line 29: Line 29:
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[http://m204wiki.rocketsoftware.com/images/4/4a/JoclrNew.pdf Janus Open Client]</li>
<li>[http://m204wiki.rocketsoftware.com/images/4/4a/JoclrNew.pdf Janus Open Client]</li>
<li>[[Janus Open Server]]</li>
<li>[http://m204wiki.rocketsoftware.com/images/1/17/JosrvrNew.pdf Janus Open Server]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>

Revision as of 00:05, 13 September 2013

Determine if user has authorization for USE $JOB

Note: 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

%AUTH = $JobAuth

%AUTH is set to either 0 or 1.

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