$JobAuth: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Determine if user has authorization for USE $JOB<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Determine if user has authorization for USE $JOB<section end="desc" /></span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $JobAuth function is [[to be entered]].</p>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $JobAuth function.</p>


This function can be used to determine if the running user has authorization to issue the USE $JOB command.  
This function can be used to determine if the running user has authorization to issue the USE $JOB command.  
Line 13: Line 13:
</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>


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.  
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.  
Line 24: Line 23:
</p>
</p>
would STOP if the user was not authorized to use $JOB.
would STOP if the user was not authorized to use $JOB.
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[Sirius functions]]</li>
<li>[[Sirius functions]]</li>
Line 37: Line 37:
<p class="caption">Products authorizing $JobAuth
<p class="caption">Products authorizing $JobAuth
</p>
</p>


[[Category:$Functions|$JobAuth]]
[[Category:$Functions|$JobAuth]]

Revision as of 21:23, 1 February 2011

<section begin="desc" />Determine if user has authorization for USE $JOB<section end="desc" />

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" />

$JobAuth Function

%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