SirPro procedure-list operations: Difference between revisions
m (add screenshot) |
m (→Prefix commands: add some words) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
you specified on the [[SirPro procedure-list selection|selection screen]]. | you specified on the [[SirPro procedure-list selection|selection screen]]. | ||
<p class="caption" style="width:550px"> | <p class="caption" style="width:550px">Procedure List screen</p> | ||
<p class="figure">[[File:ProcListS.png|550px]]</p> | <p class="figure">[[File:ProcListS.png|550px]]</p> | ||
To act on individual procedures in | <p class="note"><b>Note:</b> You can also access this screen from any screen in [[RKTools]] by using the <var>[[RKTools#PL_command|PL]]</var> command-line command. You access a similar screen in [[RKWeb]] by selecting <code>Build > Edit</code> and clicking the <b>Open Procedure List</b> button.</p> | ||
===Prefix commands=== | |||
To act on individual procedures in a TN3270 list, you specify single-character procedure commands in the select field (<b>Sel</b>) in the prefix area to the left of a procedure name. These commands are described in the following table, and the screens and processing they invoke are documented later in this page. | |||
<p class="note"><b>Note:</b> | |||
Prefix commands and most of their functionality are not available in the [[RKWeb]] interface which uses a different editor; they can only be used in the SirPro TN3270 interface. </p> | |||
<p> | |||
You may enter any number and combination of prefix commands, none of | |||
which execute until the Enter key is pressed. | |||
<b>D</b>eletes and <b>P</b>rints are done for all procedures at once. | |||
Processing for other commands is performed one | |||
procedure at a time, but with all same-type commands processed | |||
sequentially (that is, all Edits are performed, then all Browses, then | |||
all Prints, etc.) in the order in which commands are encountered from | |||
the top of the procedure list.</p> | |||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr class="head"><th>Command</th> | |||
<th>Action</th></tr> | |||
<tr><th>B</th> | <tr><th>B</th> | ||
<td>Browse</td></tr> | <td>Browse. | ||
<p> | |||
For more information, see [[#smartbr|SmartBrowse: Browse, Variable and (#) Expand]], below.</p></td></tr> | |||
<tr><th>C</th> | <tr><th>C</th> | ||
<td>Copy</td></tr> | <td>Copy. | ||
<p> | |||
For more information, see [[#Move/Copy|Move/Copy]], below.</p></td></tr> | |||
<tr><th>D</th> | <tr><th>D</th> | ||
<td>Delete</td></tr> | <td>Delete.</td></tr> | ||
<tr><th>E | <tr><th>E</th> | ||
<td>Edit</td></tr> | <td>Edit. | ||
<p> | |||
Invokes [[SoulEdit]], the SOUL editor, as of RKTools version 7.5. Under an earlier version of SirPro, it invokes the Model 204 editor.</p></td></tr> | |||
<tr><th>I</th> | <tr><th>I</th> | ||
<td>Include</td></tr> | <td>Include. | ||
<p> | |||
Invokes a <var class="product">Model 204</var> <var>[[INCLUDE command|INCLUDE]]</var> command. </p></td></tr> | |||
<tr><th>M</th> | <tr><th>M</th> | ||
<td>Move</td></tr> | <td>Move. | ||
<p> | |||
For more information, see [[#Move/Copy|Move/Copy]], below.</p></td></tr> | |||
<tr><th>P</th> | <tr><th>P</th> | ||
<td>Print</td></tr> | <td>Print. | ||
<p> | |||
For more information, see [[#Printing procedures|Printing procedures]], below.</p></td></tr> | |||
<tr><th>R</th> | <tr><th>R</th> | ||
<td>Rename</td></tr> | <td>Rename. | ||
<p> | |||
For more information, see [[#Renaming procedures|Renaming procedures]], below.</p></td></tr> | |||
<tr><th>S</th> | |||
<td>Edit. | |||
<p> | |||
Invokes the Model 204 editor.</p></td></tr> | |||
<tr><th>V</th> | <tr><th>V</th> | ||
<td>Variable analysis</td></tr> | <td>Variable analysis. | ||
<p> | |||
For more information, see [[#smartbr|SmartBrowse: Browse, Variable and (#) Expand]], below.</p></td></tr> | |||
<tr><th>#</th> | <tr><th>#</th> | ||
<td>Expanded Browse</td></tr> | <td>Expanded browse. | ||
<p> | |||
For more information, see [[#smartbr|SmartBrowse: Browse, Variable and (#) Expand]], below.</p></td></tr> | |||
</table> | </table> | ||
In addition, the following | |||
provided for users of the <var class="product">SirLib</var> change management system. | In addition, the following are prefix commands that are | ||
provided for users of the <var class="product">[[SirLib]]</var> change management system. They are described in [[SirPro change management tools and functions]]. | |||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<caption>Managed-update commands</caption> | |||
<tr class="head"><th>Command</th> | |||
<th>Action</th></tr> | |||
<tr><th>X</th> | <tr><th>X</th> | ||
<td>Xcompare</td></tr> | <td>Xcompare</td></tr> | ||
Line 55: | Line 101: | ||
<tr><th>Z</th> | <tr><th>Z</th> | ||
<td> | <td>Resequence (or ReSequence or resequenZ)</td></tr> | ||
<tr><th>U</th> | |||
<td>Undo</td></tr> | |||
<tr><th>Y</th> | |||
<td>Refresh</td></tr> | |||
</table> | </table> | ||
===Display fields and function keys=== | ===Display fields and function keys=== | ||
Line 77: | Line 118: | ||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr><th nowrap> | <tr><th nowrap>Procedure Name</th> | ||
<td>The name of a procedure available for editing. Procedure names longer than 25 characters are truncated. An asterisk is added as the last character of the truncated procedure name to indicate that the full name is not displayed, and the procedure name is highlighted. These procedures can still be selected from the list, and the full procedure name is used in all functions.</td></tr> | <td>The name of a procedure available for editing. Procedure names longer than 25 characters are truncated. An asterisk is added as the last character of the truncated procedure name to indicate that the full name is not displayed, and the procedure name is highlighted. These procedures can still be selected from the list, and the full procedure name is used in all functions.</td></tr> | ||
<tr><th> | <tr><th>Account</th> | ||
<td>The account (user id) of the last user to update the procedure.</td></tr> | <td>The account (user id) of the last user to update the procedure.</td></tr> | ||
<tr><th> | <tr><th>Bytes</th> | ||
<td>Number of bytes stored in Table D for the procedure.</td></tr> | <td>Number of bytes stored in Table D for the procedure.</td></tr> | ||
<tr><th> | <tr><th>Date/Time</th> | ||
<td>The date and time the procedure was last updated.</td></tr> | <td>The date and time the procedure was last updated.</td></tr> | ||
</table> | </table> | ||
Line 133: | Line 174: | ||
===Command-line commands=== | ===Command-line commands=== | ||
<p> | <p> | ||
The following | The commands in the following table are valid on the command-line of this screen. These commands are not available in the RKWeb interface. </p> | ||
<p> | |||
As of version 7.5, you can string command-line commands together using a semicolon (<tt>;</tt>) as a delimiter. For example, to switch to a new file, <code>SIRIUS</code>, and display those procedures that have "HELP" in their name, specify: </p> | |||
<p class="code">FL SIRIUS;A HELP</p> | |||
An erroneous command remains on the screen so it can be amended. | |||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr><td nowrap>Screen navigation <br>commands:</td> | |||
<td><table class="thJustBold"> | |||
<tr class="head"><th>Command</th><th>Description</th></tr> | |||
<tr><th>L <i>n</i></th> | <tr><th>L <i>n</i></th> | ||
<td>Locate line number <i>n</i>.</td></tr> | <td>Locate line number <i>n</i>.</td></tr> | ||
Line 162: | Line 212: | ||
<tr><th>END or QUIT</th> | <tr><th>END or QUIT</th> | ||
<td>Same as F3, returns to previous screen.</td></tr> | <td>Same as F3, returns to previous screen.</td></tr> | ||
</table> | </table></td></tr> | ||
<tr><td colspan="2"></td></tr> | |||
<tr><td nowrap>Procedure list <br>commands:</td> | |||
<td>As of version 7.5, most of the functions you can perform on the [[SirPro procedure-list selection|procedure file selection]] screen, you can issue as commands in the command line field. Most of these commands have a full name and an abbreviation. | |||
<table class="thJustBold"> | |||
<tr class="head"><th>Command</th><th>Description</th></tr> | |||
<tr><th>{PROCS | A} [<i>xxxx</i>]</th> | |||
<td>Changes the procedure name filter to '<i>xxxx</i>'. Wildcarding (as described in [[SirPro procedure-list selection#procname|Procedure name]]) is assumed and fully supported, so for instance, the command <code>PROCS CADDIE</code> finds all procedures with the string "CADDIE" in its name. | |||
<p> | |||
If you use specific wildcard characters, the search is done for the | |||
specified pattern, so <code>PROCS I*</code> restricts the display | |||
to procedures beginning with "I". </p> | |||
<p> | |||
If the filter <var class="term">xxxx</var> is omitted, all procedures are displayed. </p> | |||
</td></tr> | |||
<tr><th>AND <i>xxxx</i></th> | |||
<td>Changes the procedure name filter by combining <var class="term">xxxx</var> with the existing value with And logic, applying the "distributive law" if necessary. For instance, if the current value of the procedure name filter is <code>A|B</code>, an <code>AND C</code> command changes it to <code>A C|B C</code> by applying the distributive law: | |||
<p class="code">(A|B) C -> A C|B C </p> | |||
Hence this filters the current display listing to show only those that also meet the new criteria. | |||
</td></tr> | |||
<tr><th>+AND <i>xxxx</i></th> | |||
<td>Changes the procedure name filter by combining <var class="term">xxxx</var> with the existing value with And logic, but <b>without</b> applying the "distributive law." It just simply appends <var class="term">xxxx</var> to the existing procedure name filter. For instance, if the current value of the procedure name filter is <code>A|B</code>, an <code>AND C</code> command changes it to <code>A|B C</code>. | |||
</td></tr> | |||
<tr><th>OR <i>xxxx</i></th> | |||
<td>Changes the procedure name filter by combining <var class="term">xxxx</var> with the existing value with Or logic. For instance, if the current value of the procedure name filter is <code>A|B</code>, an <code>OR C</code> command changes it to <code>A|B|C</code>. Hence this adds additional procedures to the display listing. | |||
</td></tr> | |||
<tr><th nowrap>{CREATEPROC | CREATE | CP} [<i>xxxx</i>]</th> | |||
<td>Creates a new procedure named <code><i>xxxx</i></code> in the current file/group context. If there is no <var class="term">xxxx</var> specified, an unnamed procedure is created. | |||
</td></tr> | |||
<tr><th>{FILE | FL} <i>xxx</i></th> | |||
<td>Changes the file context to <var class="term">xxx</var> using the existing privileges to the file. | |||
</td></tr> | |||
<tr><th>FLP <i>xxx</i> </th> | |||
<td>Changes the file context to <var class="term">xxx</var> with a prompt for password. | |||
</td></tr> | |||
<tr><th>{GROUP | GP} <i>xxx</i></th> | |||
<td>Changes the group context to <var class="term">xxx</var> using the existing privileges to the group. | |||
</td></tr> | |||
<tr><th>GPP <i>xxx</i></th> | |||
<td>Changes the group context to <var class="term">xxx</var> with a prompt for password. | |||
</td></tr> | |||
<tr><th>PASSWORD | PWD</th> | |||
<td>Reopens the current file or group with a prompt for password. It implies a switch of privileges associated with the password to the current file or group. | |||
</td></tr> | |||
<tr><th>{LASTID | LID} [<i>xxx</i>]</th> | |||
<td>Changes the value of the <b>Last Updater ID</b> field. The valid value for <var class="term">xxx</var> is a string not longer than 10, or is a blank. | |||
</td></tr> | |||
<tr><th>{HAS | HA | H} [<i>xxx</i>]</th> | |||
<td>Changes the selection to procedures containing the specified string <var class="term">xxx</var>. <code>HAS $GETG</code> restricts procedures to those containing <code>$GETG</code>. | |||
<p> | |||
<var>HAS</var> does <i>not</i> support wildcards, so a search for <code>locate*</code> looks for the string "locate*". </p> | |||
<p> | <p> | ||
If the string <var class="term">xxx</var> is omitted, the search string is cleared. </p></td></tr> | |||
<tr><th>{DISPLAY | CODE | SHOW | CL} [<i>n</i>]</th> | |||
<td>With these commands you can alter the number of lines of code to be displayed, beginning with the first of any found search string. If no search string was specified on the previous screen, this command has no effect. | |||
<p> | <p> | ||
<b> | Valid values for <var class="term">n</var> are 0 through 9. If there is no <var class="term">n</var> specified, it gives a default value of 0 to the <b># of context lines</b> field. </p> | ||
are | </td></tr> | ||
<tr><th>OCC [<i>nnn</i>]</th> | |||
<td>Changes the value of the <b># of occurrences to find</b> field. The valid value for the optional <var class="term">nnn</var> is a number between 1 and 999 or it is <var>ALL</var>. If there is no <var class="term">nnn</var> specified, it gives a default value of 1 to the <b># of occurrences to find</b> field. | |||
</td></tr> | |||
<tr><th>IC [<i>x</i>]</th> | |||
<td>Changes the value of the <b>Ignore Comment lines</b> field. The valid values for the optional <var class="term">x</var> are <code>Y</code> and <code>N</code>. If there is no <var class="term">x</var> specified, it gives a default value of <code>Y</code> to <b>Ignore Comment lines</b>. | |||
</td></tr> | |||
<tr><th>HS [<i>x</i>]</th> | |||
<td>Changes the value of the <b>Hide SEQs/BASEs</b> field. The valid value for the optional <var class="term">x</var> is <code>Y</code> or <code>N</code>. If there is no <var class="term">x</var> specified, it gives a default value of <code>Y</code> to <b>Hide SEQs/BASEs</b>. | |||
</td></tr> | |||
</table></td></tr> | |||
<tr><td colspan="2"></td></tr> | |||
<tr><td>Prefix commands:</td> | |||
<td>Any of the [[#Prefix commands|prefix commands]] may be typed on the command line, followed by a procedure name or the number of that procedure in the displayed list. If the procedures selected in this manner is the first procedure selected, processing is initiated immediately. If other prefix commands have already been entered, the procedure is added to the selected list.</td></tr> | |||
</table> | |||
==Move/Copy== | ==Move/Copy== | ||
Line 181: | Line 312: | ||
The source information is protected. | The source information is protected. | ||
<p class="caption" style="width: | <p class="caption" style="width:450px">Move/Copy procedure screen</p> | ||
<p class="figure">[[File: | <p class="figure">[[File:SProCopyMv.png|450px]]</p> | ||
The copy screen requires input in the following fields: | The copy screen requires input in the following fields: | ||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr><th> | <tr><th>Copy <br>Procedure <br>From: <td> | ||
<td>The name of the file from which you are moving/copying. This field is protected.</td></tr> | |||
<table> | |||
<tr><th>Context</th> | |||
<td><code>FILE</code> or <code>GROUP</code> is displayed.</td></tr> | |||
<tr><th>Proc File</th> | |||
<td>The name of the file from which you are moving/copying. This field is protected. Provide the file password, if needed.</td></tr> | |||
<tr><th> | <tr><th>Procedure</th> | ||
<td>The name of the procedure from which you are moving/copying. This field is protected.</td></tr> | <td>The name of the procedure from which you are moving/copying. This field is protected.</td></tr> | ||
</table></td></tr> | |||
<tr><th> | <tr><th>Copy <br>Procedure <br>To: <td> | ||
< | |||
<tr><th> | <table> | ||
<td> | <tr><th>Context</th> | ||
<td><code>FILE</code> or <code>GROUP</code> are the only valid input values.</td></tr> | |||
<tr><th | <tr><th>Proc File</th> | ||
<td>The name of the file to which you want to move/copy the file. Provide the file password, if needed.</td></tr> | |||
<tr><th>Procedure</th> | |||
<td>The procedure can be renamed during Copy/Move operation. If the file is being copied or moved to the same file, it must be renamed.</td></tr> | <td>The procedure can be renamed during Copy/Move operation. If the file is being copied or moved to the same file, it must be renamed.</td></tr> | ||
<tr><th> | <tr><th nowrap>Replace Existing Procedure?</th> | ||
<td>Type Y to replace if the procedure already exists. The default is N.</td></tr> | <td>Type <code>Y</code> to replace if the procedure already exists. The default is <code>N</code>.</td></tr> | ||
<tr><th> | <tr><th>Keep Old Date?</th> | ||
<td> | <td><code>Y</code> transfers the existing date (last update) of the source procedure to the destination procedure. The default is <code>Y</code>. </td></tr> | ||
</table></td></tr> | |||
</table> | </table> | ||
Line 229: | Line 366: | ||
or F12 to confirm the deletions. | or F12 to confirm the deletions. | ||
<p class="caption" style="width: | <p class="caption" style="width:550px">Confirming procedure deletion</p> | ||
<p class="figure">[[File:SProProcDeleteS.png|550px]]</p> | |||
Function keys are the same as on the procedure selection list, except that F10 | Function keys are the same as on the procedure selection list, except that F10 | ||
Line 241: | Line 379: | ||
A variety of options are provided for printing procedures. | A variety of options are provided for printing procedures. | ||
Procedures may be routed to an output file, or to a printer via a <code>USE | Procedures may be routed to an output file, or to a printer via a <code>USE | ||
<i>printer.id</i></code> command or a < | <i>printer.id</i></code> command or a <var>[[USE $PRINT / $PUNCH / $JOB command|USE $PRINT]]</var> command. | ||
No confirmation is performed for print operations. | No confirmation is performed for print operations. | ||
Line 249: | Line 387: | ||
and various characteristics of the print job: | and various characteristics of the print job: | ||
<p class="caption" style="width: | <p class="caption" style="width:450px">Print destination screen</p> | ||
<p class="figure">[[File:SProPrintS.png|450px]]</p> | |||
Enter the following information: | Enter the following information: | ||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr><th> | <tr><th>Destination</th> | ||
<td>The destination of the procedure. Select 1 to print to | <td>The destination of the procedure. Select 1 to print the procedure(s) to the file named in the <b>Dataset DDNAME</b> field, 2 to output to the printer named in the <b>Printer ID</b> field, | ||
and 3 to invoke a USE $PRINT | and 3 to invoke a <code>USE $PRINT</code> to the specified <b>$PRINT Class</b> and default printer.</td></tr> | ||
<tr><th> | <tr><th>Dataset DDNAME</th> | ||
<td> | <td>DDname of a sequential data set to contain the print output. This name must begin with <code>OUT</code>.</td></tr> | ||
<tr><th> | <tr><th>Printer ID</th> | ||
<td>A valid | <td>A valid predefined printer name. If this field is blank or invalid when a 2 is specified in the <b>Destination</b> field, the print goes to the user's terminal.</td></tr> | ||
<tr><th> | <tr><th>$PRINT Class</th> | ||
<td>The job class to use for USE $PRINT requests. This | <td>The job class to use for <code>USE $PRINT</code> requests. This must be a valid class at your site. | ||
</td></tr> | |||
<tr><th> | <tr><th>with</th> | ||
<td>Enter in these two fields any print routing criteria normally placed in the | <td>Enter in these two fields any print routing criteria normally placed in the <var>WITH</var> clause of a <var>USE</var> statement (such as <var>COPIES=<i>xx</i></var>, <var>TAG</var> or <var>ID</var> statements).</td></tr> | ||
<tr><th>UDDLPP</th> | <tr><th>Lines Per Page (UDDLPP)</th> | ||
<td>The number of lines to be printed or displayed per page. The default is 60 lines per page.</td></tr> | <td>The number of lines to be printed or displayed per page. The default is 60 lines per page.</td></tr> | ||
<tr><th>UDDCCC</th> | <tr><th>Characters Per Line (UDDCCC)</th> | ||
<td>The number of characters to be printed or displayed per line. The default is 133 characters per line.</td></tr> | <td>The number of characters to be printed or displayed per line. The default is 133 characters per line.</td></tr> | ||
<tr><th> | <tr><th>Record Format (UDDRFM)</th> | ||
<td>The number of characters to be printed or displayed per line. The default is 133 characters per line.</td></tr> | <td>The number of characters to be printed or displayed per line. The default is 133 characters per line.</td></tr> | ||
<tr><th | <tr><th>Header Control (HDRCTL)</th> | ||
<td> | <td>Header control settings let you suppress various levels of automatic print headers.</td></tr> | ||
<tr><th> | <tr><th nowrap>Output for procedure reload (Y/N)</th> | ||
<td>Specifying <code>Y</code> to this prompt prints procedures beginning in column 1 and placing <code>PROCEDURE <i>procname</i></code> and <code>END PROCEDURE <i>procname</i></code> statements around each output procedure. | <td>Specifying <code>Y</code> to this prompt prints procedures beginning in column 1 and placing <code>PROCEDURE <i>procname</i></code> and <code>END PROCEDURE <i>procname</i></code> statements around each output procedure. | ||
This allows later uploading of the output stream directly back into a Model 204 procedure file. | |||
<p> | <p> | ||
Specifying <code>Y</code> to this prompt | Specifying <code>Y</code> to this prompt fails if a <code>Y</code> is also specified for the following prompt (<b>Use SIRPRO Formatting</b>).</p></td></tr> | ||
<tr><th nowrap>Use SIRPRO Formatting (Y/N)</th> | |||
<td>Specifying <code>N</code> to this prompt prints procedures as they are in the procedure file. Specifying <code>Y</code> forces a page break at the beginning of each procedure, | |||
numbers the lines of the procedure, and produces a header at the top of each page, indicating the procedure file, procedure name, date, and time of the print.</td></tr> | |||
</table> | </table> | ||
Line 308: | Line 447: | ||
except the destination. | except the destination. | ||
== | ==Renaming procedures== | ||
Procedures selected for <b>R</b>enaming are presented one at a time. | Procedures selected for <b>R</b>enaming are presented one at a time. | ||
<p class="caption" style="width: | <p class="caption" style="width:400px">Rename Procedure screen</p> | ||
<p class="figure">[[File:SProRenameProcS.png|400px]]</p> | |||
On returning to the original list, procedure information lines are | On returning to the original list, procedure information lines are | ||
overwritten with a success message for renamed procedures, and they are | overwritten with a success message for renamed procedures, and they are | ||
protected from update until the user's procedure list is refreshed. | protected from update until the user's procedure list is refreshed. | ||
On a renaming failure, SirPro reports the reason: insufficient privileges, the procedure name already exists, or the procedure name exists as an alias, or the procedure is locked. | |||
<p><b>Function keys</b></p> | <p><b>Function keys</b></p> | ||
Line 327: | Line 469: | ||
</table> | </table> | ||
< | ==<b id="smartbr"></b>SmartBrowse: Browse, Variable and (#) Expand== | ||
<b>B</b>rowse, <b>V</b>ariable and <b>#</b> (Expand) prefix | <b>B</b>rowse, <b>V</b>ariable and <b>#</b> (Expand) prefix | ||
commands all invoke SmartBrowse sessions. | commands all invoke SmartBrowse sessions. | ||
Line 345: | Line 484: | ||
<p class="caption" style="width:500px">SmartBrowse: Browsing a procedure</p> | <p class="caption" style="width:500px">SmartBrowse: Browsing a procedure</p> | ||
<p class="figure">[[File:SProBrowse2S.png|500px]]</p> | |||
The following command-line commands are also valid, depending on the SmartBrowse session context: | |||
<table class="thJustBold"> | <table class="thJustBold"> | ||
<tr><th>BOTTOM</th> | |||
<td>Moves the display to the bottom of the procedure list.</td></tr> | |||
<tr><th>BROWSE</th> | <tr><th>BROWSE</th> | ||
<td>Convert the display to a simple browse session.</td></tr> | <td>Convert the display to a simple browse session.</td></tr> | ||
<tr><th>EXPAND</th> | <tr><th>EXPAND</th> | ||
<td>Expand all include statements.</td></tr> | <td>Expand all include statements.</td></tr> | ||
<tr><th>F <i>string</i> or /<i>string</i></th> | |||
<td>Find a specific "string," starting the search from the top line of the display. This string can be any part of the procedure name. That is, it is not a prefix search.</td></tr> | |||
<tr><th>-F <i>string</i> or -/<i>string</i></th> | |||
<td>Find a specific string, searching backward from the top line of the display.</td></tr> | |||
<tr><th>L <i>n</i></th> | <tr><th>L <i>n</i></th> | ||
<td>Locate line number <i>n</i>.</td></tr> | <td>Locate line number <i>n</i>.</td></tr> | ||
Line 373: | Line 510: | ||
<td>Scroll <i>n</i> or -<i>n</i> lines from the top line of the display.</td></tr> | <td>Scroll <i>n</i> or -<i>n</i> lines from the top line of the display.</td></tr> | ||
<tr><th> | <tr><th>M</th> | ||
<td> | <td>When using F7 or F8, scroll up or down to the top or bottom of the list of procedures.</td></tr> | ||
<tr><th>TOP</th> | <tr><th>TOP</th> | ||
<td>Moves the display to the top of the procedure list.</td></tr> | <td>Moves the display to the top of the procedure list.</td></tr> | ||
<tr><th> | <tr><th>UNDECL or VARIABLE</th> | ||
<td>Display undeclared variable names only.</td></tr> | |||
<td> | |||
</table> | </table> | ||
Latest revision as of 16:56, 23 June 2017
Overview
The procedure list shows the procedures that fit the criteria you specified on the selection screen.
Note: You can also access this screen from any screen in RKTools by using the PL command-line command. You access a similar screen in RKWeb by selecting Build > Edit
and clicking the Open Procedure List button.
Prefix commands
To act on individual procedures in a TN3270 list, you specify single-character procedure commands in the select field (Sel) in the prefix area to the left of a procedure name. These commands are described in the following table, and the screens and processing they invoke are documented later in this page.
Note: Prefix commands and most of their functionality are not available in the RKWeb interface which uses a different editor; they can only be used in the SirPro TN3270 interface.
You may enter any number and combination of prefix commands, none of which execute until the Enter key is pressed. Deletes and Prints are done for all procedures at once. Processing for other commands is performed one procedure at a time, but with all same-type commands processed sequentially (that is, all Edits are performed, then all Browses, then all Prints, etc.) in the order in which commands are encountered from the top of the procedure list.
Command | Action |
---|---|
B | Browse.
For more information, see SmartBrowse: Browse, Variable and (#) Expand, below. |
C | Copy.
For more information, see Move/Copy, below. |
D | Delete. |
E | Edit.
Invokes SoulEdit, the SOUL editor, as of RKTools version 7.5. Under an earlier version of SirPro, it invokes the Model 204 editor. |
I | Include.
Invokes a Model 204 INCLUDE command. |
M | Move.
For more information, see Move/Copy, below. |
P | Print.
For more information, see Printing procedures, below. |
R | Rename.
For more information, see Renaming procedures, below. |
S | Edit.
Invokes the Model 204 editor. |
V | Variable analysis.
For more information, see SmartBrowse: Browse, Variable and (#) Expand, below. |
# | Expanded browse.
For more information, see SmartBrowse: Browse, Variable and (#) Expand, below. |
In addition, the following are prefix commands that are provided for users of the SirLib change management system. They are described in SirPro change management tools and functions.
Command | Action |
---|---|
X | Xcompare |
Q | seQuence |
N | New |
K | Klobber |
Z | Resequence (or ReSequence or resequenZ) |
U | Undo |
Y | Refresh |
Display fields and function keys
The display area of the screen, described below, can be toggled between a set of views. The DLIST view, similar to the view of procedures most commonly seen by User Language developers at the command level, contains the following information:
Procedure Name | The name of a procedure available for editing. Procedure names longer than 25 characters are truncated. An asterisk is added as the last character of the truncated procedure name to indicate that the full name is not displayed, and the procedure name is highlighted. These procedures can still be selected from the list, and the full procedure name is used in all functions. |
---|---|
Account | The account (user id) of the last user to update the procedure. |
Bytes | Number of bytes stored in Table D for the procedure. |
Date/Time | The date and time the procedure was last updated. |
The following function keys invoke actions as described:
F1 | Full screen help. |
---|---|
F2 | Sort the displayed list by procedure name. |
F3 | Quit (return to previous screen). |
F4 | Sort the displayed list by last updating user. |
F5 | Sort the displayed list by last date updated. |
F6 | Sort the displayed list by size of procedure. |
F7 | Scroll backward (up). |
F8 | Scroll forward (down). |
F9 | Repeat last command-line command. |
F10 | Refresh the list. Use this key to clear any prefix selections and to recheck the file for procedure information that may have changed (for instance, if another user is deleting procedures in the same file, your list may be out-of-date). |
F11 | Toggles between upper and mixed case Edit when the editor is invoked. The key label indicates the case to which you will switch when the key is pressed. |
F12 | Toggle the display between a "D LIST" format and a "FULLNAME" format. In DLIST format, the display shows the traditional Model 204 procedure list information with long procedure names truncated at 25 characters (for display only). In FULLNAME format, long procedure names overlay their corresponding procedure information. |
Command-line commands
The commands in the following table are valid on the command-line of this screen. These commands are not available in the RKWeb interface.
As of version 7.5, you can string command-line commands together using a semicolon (;) as a delimiter. For example, to switch to a new file, SIRIUS
, and display those procedures that have "HELP" in their name, specify:
FL SIRIUS;A HELP
An erroneous command remains on the screen so it can be amended.
Screen navigation commands: |
| ||||||||||||||||||||||||||||||||||
Procedure list commands: |
As of version 7.5, most of the functions you can perform on the procedure file selection screen, you can issue as commands in the command line field. Most of these commands have a full name and an abbreviation.
| ||||||||||||||||||||||||||||||||||
Prefix commands: | Any of the prefix commands may be typed on the command line, followed by a procedure name or the number of that procedure in the displayed list. If the procedures selected in this manner is the first procedure selected, processing is initiated immediately. If other prefix commands have already been entered, the procedure is added to the selected list. |
Move/Copy
The destination screen is displayed once for each procedure selected for Copy or Move. The screen requires entry of destination file and procedure name, and allows the procedure to be edited on the way to the new location. The source information is protected.
The copy screen requires input in the following fields:
Copy Procedure From: |
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copy Procedure To: |
|
Function keys
The following keys invoke actions as described:
F1 | Full screen help. |
---|---|
F3 | Cancel the request to copy or move this procedure. If this is one of a list of selected procedures, the next procedure is presented; if this is the only procedure, or if it is the last procedure in a list, you are returned to the procedure list display. |
Deleting procedures
Procedures selected for deletion are presented in a single scrollable list, from which you press the F3 key to cancel (and return to the list where the selections can be changed), or F12 to confirm the deletions.
Function keys are the same as on the procedure selection list, except that F10 is not active (the user must return to the previous screen to refresh the procedure list), and F12 is used as a confirmation key for the delete.
On returning to the original list, procedure information lines are overwritten with a success or failure message for the delete operation.
Printing procedures
A variety of options are provided for printing procedures.
Procedures may be routed to an output file, or to a printer via a USE
printer.id
command or a USE $PRINT command.
No confirmation is performed for print operations. The user is routed directly to the Print Destination screen for routing.
The Print destination screen controls output routing of the procedures, and various characteristics of the print job:
Enter the following information:
Destination | The destination of the procedure. Select 1 to print the procedure(s) to the file named in the Dataset DDNAME field, 2 to output to the printer named in the Printer ID field,
and 3 to invoke a USE $PRINT to the specified $PRINT Class and default printer. |
---|---|
Dataset DDNAME | DDname of a sequential data set to contain the print output. This name must begin with OUT . |
Printer ID | A valid predefined printer name. If this field is blank or invalid when a 2 is specified in the Destination field, the print goes to the user's terminal. |
$PRINT Class | The job class to use for USE $PRINT requests. This must be a valid class at your site.
|
with | Enter in these two fields any print routing criteria normally placed in the WITH clause of a USE statement (such as COPIES=xx, TAG or ID statements). |
Lines Per Page (UDDLPP) | The number of lines to be printed or displayed per page. The default is 60 lines per page. |
Characters Per Line (UDDCCC) | The number of characters to be printed or displayed per line. The default is 133 characters per line. |
Record Format (UDDRFM) | The number of characters to be printed or displayed per line. The default is 133 characters per line. |
Header Control (HDRCTL) | Header control settings let you suppress various levels of automatic print headers. |
Output for procedure reload (Y/N) | Specifying Y to this prompt prints procedures beginning in column 1 and placing PROCEDURE procname and END PROCEDURE procname statements around each output procedure.
This allows later uploading of the output stream directly back into a Model 204 procedure file.
Specifying |
Use SIRPRO Formatting (Y/N) | Specifying N to this prompt prints procedures as they are in the procedure file. Specifying Y forces a page break at the beginning of each procedure,
numbers the lines of the procedure, and produces a header at the top of each page, indicating the procedure file, procedure name, date, and time of the print. |
Function keys are the same as on the procedure selection list, except that F10 is not active (the user must return to the previous screen to refresh their selected list), and F12 is used as a confirmation key for the print.
If either Option 1 or Option 2 is selected, SirPro executes a simple USE command. If Option 3 is selected, a command of the following format is executed:
USE $PRINT PRINTER=printer.id CLASS=print.class
If the specified printer is invalid, PRINTER=LOCAL
is substituted.
All user entries on the print screen are saved in the user profile except the destination.
Renaming procedures
Procedures selected for Renaming are presented one at a time.
On returning to the original list, procedure information lines are overwritten with a success message for renamed procedures, and they are protected from update until the user's procedure list is refreshed.
On a renaming failure, SirPro reports the reason: insufficient privileges, the procedure name already exists, or the procedure name exists as an alias, or the procedure is locked.
Function keys
The following keys invoke actions as described:
F1 | Full screen help for this screen. |
---|---|
F3 | Cancel the request to rename this procedure. |
SmartBrowse: Browse, Variable and (#) Expand
Browse, Variable and # (Expand) prefix commands all invoke SmartBrowse sessions.
- Browse displays the procedure in a scrollable list (which does not invoke an edit session).
- Expand (#) brings inline all INCLUDEd code, and presents the fully expanded procedure in a scrollable list (INCLUDEs of temporary procedures are ignored).
- Variable scans the fully expanded procedure and presents a list of undeclared %variables.
The following command-line commands are also valid, depending on the SmartBrowse session context:
BOTTOM | Moves the display to the bottom of the procedure list. |
---|---|
BROWSE | Convert the display to a simple browse session. |
EXPAND | Expand all include statements. |
F string or /string | Find a specific "string," starting the search from the top line of the display. This string can be any part of the procedure name. That is, it is not a prefix search. |
-F string or -/string | Find a specific string, searching backward from the top line of the display. |
L n | Locate line number n. |
n or -n | Scroll n or -n lines from the top line of the display. |
M | When using F7 or F8, scroll up or down to the top or bottom of the list of procedures. |
TOP | Moves the display to the top of the procedure list. |
UNDECL or VARIABLE | Display undeclared variable names only. |
Function keys
The following keys invoke actions as described:
F1 | Full screen help for this screen. |
---|---|
F3 | Exit from SmartBrowse of this procedure. |
F7 | Scroll up. |
F8 | Scroll down. |
F9 | Repeat last command-line command. |
See also
- SirPro
- SirPro procedure-list selection
- SirPro procedure-list operations
- SirPro command processor
- SirPro Print All Information facility
- SirPro field definition display
- SirPro CCASTAT password maintenance
- SirPro file-group maintenance
- SirPro change management tools and functions
- SirPro date processing