FUNPRMU parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 25: Line 25:
program invoking <var>[[FastUnload (Recordset function)|FastUnload]]</var>, <var>[[FastUnloadTask (Recordset function)|FastUnloadTask]]</var>, or <var>[[$Funload]]</var>.
program invoking <var>[[FastUnload (Recordset function)|FastUnload]]</var>, <var>[[FastUnloadTask (Recordset function)|FastUnloadTask]]</var>, or <var>[[$Funload]]</var>.
Without the use of these parameters,
Without the use of these parameters,
some auditing information may be available from the <code>FUNAUDIT</code> dataset, but that information may be inadequate:
some auditing information may be available from the <var>FUNAUDIT</var> dataset, but that information may be inadequate:
for example, messages from a job initiated by the <var>FastUnload</var> method will not be in <code>FUNAUDIT</code> if its <var>Report</var> parameter is used.
for example, messages from a job initiated by the <var>FastUnload</var> method will not be in <var>FUNAUDIT</var> if its <var>Report</var> parameter is used.
   
   
This is a bitmask parameter where the bits mean:
This is a bitmask parameter where the bits mean:
Line 57: Line 57:
to concern yourself with, but are explained as part of the more detailed
to concern yourself with, but are explained as part of the more detailed
discussion [[#Fast/Unload report processing|below]].
discussion [[#Fast/Unload report processing|below]].
<p class="note">'''Note:''' The X'01' bit is not used by <var>FUNPRMU</var>.</p>
   
   
<table>
<table>
<tr><td>Using the X'02', X'04', and X'08' bits of the <var>FUNPRMU</var> user parameter and the <var>FUNPARM</var> system parameter is fairly straightforward and the above description should be adequate to use them.<br/>
<tr><td>Using the X'02', X'04', and X'08' bits of the <var>FUNPRMU</var> user parameter and the <var>FUNPARM</var> system parameter is fairly straightforward, and the above description should be adequate to use them.<p>
A complete description of the processing triggered by these bits is presented [[#Fast/Unload report processing|below]].</td></tr></table>
A complete description of the processing triggered by these bits is presented [[#Fast/Unload report processing|below]].</p></td></tr></table>
   
   
===Fast/Unload report processing===
===Fast/Unload report processing===
Line 66: Line 68:
<code>FUNL0004</code> message line indicating the end of the job).
<code>FUNL0004</code> message line indicating the end of the job).
Each User Language invocation (of <var>FastUnload</var>, for example) can designate a DD name or <var>Stringlist</var> or <var>$list</var>
Each User Language invocation (of <var>FastUnload</var>, for example) can designate a DD name or <var>Stringlist</var> or <var>$list</var>
destination for the report, or it can omit the destination, in which case the report is sent to the <code>FUNAUDIT</code> dataset,
destination for the report, or it can omit the destination, in which case the report is sent to the <var>FUNAUDIT</var> dataset,
if there is one, or otherwise to the <var class="product">Model 204</var> audit trail.
if there is one, or otherwise to the <var class="product">Model 204</var> audit trail.
   
   
The <var>FUNPARM</var> and <var>FUNPRMU</var> parameters
The <var>FUNPARM</var> and <var>FUNPRMU</var> parameters
allow the <b>auditing</b> of some of the messages from the report to be captured on <code>FUNAUDIT</code> and/or
allow the <b>auditing</b> of some of the messages from the report to be captured on <var>FUNAUDIT</var> and/or
the <var class="product">Model 204</var> audit trail, regardless of the designation of the report destination in the
the <var class="product">Model 204</var> audit trail, regardless of the designation of the report destination in the
various User Language invocations of the
various User Language invocations of the
Line 82: Line 84:
<tr><td>If the report's destination is <code>FUNAUDIT</code></td>
<tr><td>If the report's destination is <code>FUNAUDIT</code></td>
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has the <b>X'08'</b> bit <b>off</b> and the <b>X'04'</b> bit <b>on</b>, the <var>AllMessages</var> argument is set to <code>True</code> (or for <var>$Funload</var>, the <code>ALLMSG</code> option is added) and the <code>LIST</code> option is added, so that <code>FUNAUDIT</code> contains the list of <var class="product">Fast/Unload</var> parameter settings and the FUEL program listing.<li>Otherwise, <code>FUNAUDIT</code> is not affected by these parameters, but audited information is present in the <var class="product">Model 204</var> audit trail if either parameter has the X'08' bit on.</ul></td></tr>
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has the <b>X'08'</b> bit <b>off</b> and the <b>X'04'</b> bit <b>on</b>, the <var>AllMessages</var> argument is set to <code>True</code> (or for <var>$Funload</var>, the <code>ALLMSG</code> option is added) and the <code>LIST</code> option is added, so that <code>FUNAUDIT</code> contains the list of <var class="product">Fast/Unload</var> parameter settings and the FUEL program listing.<li>Otherwise, <code>FUNAUDIT</code> is not affected by these parameters, but audited information is present in the <var class="product">Model 204</var> audit trail if either parameter has the X'08' bit on.</ul></td></tr>
<tr><td>If the report's destination is the <var class="product">Model 204</var> audit trail</td>
<tr><td>If the report's destination is the <var class="product">Model 204</var> audit trail</td>
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has the <b>X'04'</b> bit <b>on</b>, the <var>AllMessages</var> argument is set to <code>True</code> (or for <var>$Funload</var>, the <code>ALLMSG</code> option is added) and the <code>LIST</code> option is added, so that the <var class="product">Model 204</var> audit trail contains the list of <var class="product">Fast/Unload</var> parameter settings and the FUEL program listing.<li>Otherwise, the <var class="product">Model 204</var> audit trail is not affected by these parameters and indeed they do not provide extra auditing for this invocation.</ul></td></tr>
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has the <b>X'04'</b> bit <b>on</b>, the <var>AllMessages</var> argument is set to <code>True</code> (or for <var>$Funload</var>, the <code>ALLMSG</code> option is added) and the <code>LIST</code> option is added, so that the <var class="product">Model 204</var> audit trail contains the list of <var class="product">Fast/Unload</var> parameter settings and the FUEL program listing.<li>Otherwise, the <var class="product">Model 204</var> audit trail is not affected by these parameters and indeed they do not provide extra auditing for this invocation.</ul></td></tr>
<tr><td>Otherwise (the report's destination is a<var>Stringlist</var> or <var>$list</var> or a dataset - with a DD name other than <code>FUNAUDIT</code>)</td>
<tr><td>Otherwise (the report's destination is a<var>Stringlist</var> or <var>$list</var> or a dataset - with a DD name other than <code>FUNAUDIT</code>)</td>
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has <b>any</b> of the <b>X'08'</b>, <b>X'04'</b>, or <b>X'02'</b> bits <b>on</b>, an "audit" stream is produced for the job, containing at least the job's "basic" <var class="product">Fast/Unload</var> messages.
<td><ul><li>If <b>either</b> <var>FUNPARM</var> or <var>FUNPRMU</var> has <b>any</b> of the <b>X'08'</b>, <b>X'04'</b>, or <b>X'02'</b> bits <b>on</b>, an "audit" stream is produced for the job, containing at least the job's "basic" <var class="product">Fast/Unload</var> messages.
Line 93: Line 97:
</table>
</table>
   
   
Note that the X'01' bit is not used by <var>FUNPRMU</var>.
[[Category:User parameters]]
[[Category:User parameters]]
[[Category:Parameters]]
[[Category:Parameters]]
[[Category:Fast/Unload User Language Interface]]
[[Category:Fast/Unload User Language Interface]]

Revision as of 22:36, 19 April 2013


User-level Fast/Unload flags

Summary

Default value
X'00'
Parameter type
User
Where set
Any user
Related products
Fast/Unload User Language Interface
Introduced
Sirius Mods 8.1 (for the most part, this parameter is ignored without the corresponding feature introduced in version 4.7 of Fast/Unload)

Description

This parameter, together with the FUNPARM system parameter, controls the auditing of messages when using the Fast/Unload User Language Interface. These parameters can be used to augment the availability of auditing information, in such a way that the user or the system manager can ensure that information is available for a single job or all jobs, without changes to any User Language program invoking FastUnload, FastUnloadTask, or $Funload. Without the use of these parameters, some auditing information may be available from the FUNAUDIT dataset, but that information may be inadequate: for example, messages from a job initiated by the FastUnload method will not be in FUNAUDIT if its Report parameter is used.

This is a bitmask parameter where the bits mean:

X'02'
Indicates that "basic" Fast/Unload messages for this user are always audited, regardless of the presence of a Fast/Unload User Language Interface "report" argument.
X'04'
Indicates that all Fast/Unload messages for this user, except "Field statistics", are always audited, regardless of the presence of a Fast/Unload User Language Interface "report" argument. The X'02' bit need not be set if the X'04' bit is set.
X'08'
Indicates that "basic" Fast/Unload messages for this user are always audited in the Model 204 audit trail, whether or not the FUNAUDIT DD name is present. If the X'04' bit is on, all messages are audited there as well. In the odd case that there is no Model 204 audit trail, the X'08' bit is ignored, but auditing is performed as if the X'02' bit were on, whether it is or not.

For both of the FUNPRMU X'02' and X'04' bits, the same bit has the same meaning in the FUNPARM system parameter; the indicated effect takes place if either of the FUNPRMU or FUNPARM bits are on. That is also true for the X'08' bit, although there are some additional details for the X'08' bit which generally you don't need to concern yourself with, but are explained as part of the more detailed discussion below.

Note: The X'01' bit is not used by FUNPRMU.

Using the X'02', X'04', and X'08' bits of the FUNPRMU user parameter and the FUNPARM system parameter is fairly straightforward, and the above description should be adequate to use them.

A complete description of the processing triggered by these bits is presented below.

Fast/Unload report processing

Every Fast/Unload User Language Interface job has a "report", which may contain many Fast/Unload messages (it contains at least the FUNL0004 message line indicating the end of the job). Each User Language invocation (of FastUnload, for example) can designate a DD name or Stringlist or $list destination for the report, or it can omit the destination, in which case the report is sent to the FUNAUDIT dataset, if there is one, or otherwise to the Model 204 audit trail.

The FUNPARM and FUNPRMU parameters allow the auditing of some of the messages from the report to be captured on FUNAUDIT and/or the Model 204 audit trail, regardless of the designation of the report destination in the various User Language invocations of the Fast/Unload User Language Interface.

The effect of these parameters is based on their values at the time that User Language invokes a Fast/Unload User Language Interface job; they are explained for each form of report destination in the following table:

If the report's destination is FUNAUDIT
  • If either FUNPARM or FUNPRMU has the X'08' bit off and the X'04' bit on, the AllMessages argument is set to True (or for $Funload, the ALLMSG option is added) and the LIST option is added, so that FUNAUDIT contains the list of Fast/Unload parameter settings and the FUEL program listing.
  • Otherwise, FUNAUDIT is not affected by these parameters, but audited information is present in the Model 204 audit trail if either parameter has the X'08' bit on.
If the report's destination is the Model 204 audit trail
  • If either FUNPARM or FUNPRMU has the X'04' bit on, the AllMessages argument is set to True (or for $Funload, the ALLMSG option is added) and the LIST option is added, so that the Model 204 audit trail contains the list of Fast/Unload parameter settings and the FUEL program listing.
  • Otherwise, the Model 204 audit trail is not affected by these parameters and indeed they do not provide extra auditing for this invocation.
Otherwise (the report's destination is aStringlist or $list or a dataset - with a DD name other than FUNAUDIT)
  • If either FUNPARM or FUNPRMU has any of the X'08', X'04', or X'02' bits on, an "audit" stream is produced for the job, containing at least the job's "basic" Fast/Unload messages.
  • If either FUNPARM or FUNPRMU has the X'04' bit on, this will also contain the list of Fast/Unload parameter settings and the FUEL program listing.
  • If both FUNPARM and FUNPRMU have the X'08' bit off, the audit stream will be sent to FUNAUDIT (if that DD name is present; otherwise the stream is sent to the Model 204 audit trail).
  • If both FUNPARM and FUNPRMU have the X'08' bit on, the audit stream will be sent to the Model 204 audit trail.
  • If one of FUNPARM and FUNPRMU has the X'08' bit on and the other has it off, the audit stream will be sent:
    • only to the Model 204 audit trail if there is no FUNAUDIT DD name present;
    • both to the Model 204 audit trail and to FUNAUDIT if the parm which has the X'08' bit off also has either the X'04' or X'02' bit on;
    • otherwise (the parm which has the X'08' bit off also has both the X'04' and X'02' bits off), only to the Model 204 audit trail.