$JobAuth: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:$JobAuth}} <span class="pageSubtitle"><section begin="desc" />Determine if user has authorization for USE $JOB<section end="desc" /></span> <p class="warning">Mos...")
 
(Automatically generated page update)
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$JobAuth}}
{{DISPLAYTITLE:$JobAuth}}
<span class="pageSubtitle"><section begin="desc" />Determine if user has authorization for USE $JOB<section end="desc" /></span>
<span class="pageSubtitle">Determine if user has authorization for USE $JOB</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="warn"><b>Note: </b>Many $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 8: Line 8:
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.
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==
==Syntax==
<p class="syntax"><section begin="syntax" /> %AUTH = $JobAuth
<p class="syntax">%AUTH = $JobAuth
<section end="syntax" /></p>
<p class="caption">$JobAuth Function
</p>
</p>
<p class="caption">%AUTH is set to either 0 or 1.</p>
<p>
 
</p>
<p>%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 <var class="product">Model 204</var>.  


For example, the code fragment
For example, the code fragment
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.
==Products authorizing {{PAGENAMEE}}==
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[Sirius functions]]</li>
<li>[[List of $functions|Sirius functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Janus Open Server]]</li>
<li>[[Media:JosrvrNew.pdf|Janus Open Server]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Japanese functions]]</li>
<li>Japanese functions</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>


</ul>
</ul>
<p class="caption">Products authorizing $JobAuth
<p>
</p>
</p>


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

Latest revision as of 22:51, 20 September 2018

Determine if user has authorization for USE $JOB

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