Executing and deleting commands with FILEMGMT: Difference between revisions
m (typo) |
|||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Executing commands== | ==Executing commands== | ||
<p>Commands are executed on the appropriate commands screen.</p> | <p> | ||
<p>To invoke the Execute Commands screen:</p> | Commands are executed on the appropriate commands screen.</p> | ||
<p> | |||
To invoke the Execute Commands screen:</p> | |||
<ol> | <ol> | ||
<li>Issue the COMmands command (or press | <li>Issue the <b>COMmands</b> command (or press F6) from a screen that supports the command.</li> | ||
<li>Select the commands you want to execute and press | <li>Select the commands you want to execute and press F6.</li> | ||
</ol> | </ol> | ||
<p class="note"><b>Note:</b | <p class="note"><b>Note:</b> Before you execute commands in Active mode that were previously executed in Inactive mode, run <var>DDGEN</var> against the file. Running <var>DDGEN</var> ensures that the dictionary file definition reflects the current status of the <var class="product">Model 204</var> file. </p> | ||
==Execute Commands screen== | ==Execute Commands screen== | ||
<p>Press the | <p> | ||
Press the F6 (COMmands) key from any screen that supports the command. FILEMGMT displays the Execute Commands screen:</p> | |||
<ul> | <ul> | ||
<li>If you entered a file name on the primary screen, only the commands staged for that file are displayed.</li> | <li>If you entered a file name on the primary screen, only the commands staged for that file are displayed.</li> | ||
<li>If you did not enter a file name on the primary screen, the commands for all the files staged under your user ID are displayed. </li> | <li>If you did not enter a file name on the primary screen, the commands for all the files staged under your user ID are displayed. </li> | ||
</ul> | </ul> | ||
<p>The following Execute Commands screen shows all the files staged under a user ID.</p> | <p> | ||
The following Execute Commands screen shows all the files staged under a user ID.</p> | |||
<table> | <table> | ||
<tr> | <tr> | ||
Line 34: | Line 39: | ||
_ Field: EMPLOYEE INITIAL REDEFINE 03/31/2005 | _ Field: EMPLOYEE INITIAL REDEFINE 03/31/2005 | ||
_ Field: EMPLOYEE LAST NAME REDEFINE 03/31/2005 | _ Field: EMPLOYEE LAST NAME REDEFINE 03/31/2005 | ||
Line 46: | Line 49: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p>FILEMGMT displays the names of files and their records, field groups, and fields. For each item, FILEMGMT displays the current or most recently executed command. To the right of the command, FILEMGMT displays the command status | <p> | ||
<p>FILEMGMT prompts you only for items that are currently staged by displaying an underscore character (_) in the prefix area to the left of the item name.</p> | FILEMGMT displays the names of files and their records, field groups, and fields. For each item, FILEMGMT displays the current or most recently executed command. To the right of the command, FILEMGMT displays the command status — for example, whether the command is pending, was executed successfully, or could not be executed because of an error condition or privilege violation. All the items that have been selected for execution at least once display a status. To the right of the status, FILEMGMT displays the date the command was requested.</p> | ||
<p>If a requested operation affects a set of records, field groups, or fields (for example, a file creation or record definition), FILEMGMT displays a prefix prompt only for the highest order of entity type. For example, file creation is a single operation, affecting the file and all of its records, field groups, and fields. Typing X in the file prefix area and pressing | <p> | ||
FILEMGMT prompts you only for items that are currently staged by displaying an underscore character (<tt>_</tt>) in the prefix area to the left of the item name.</p> | |||
<p> | |||
If a requested operation affects a set of records, field groups, or fields (for example, a file creation or record definition), FILEMGMT displays a prefix prompt only for the highest order of entity type. For example, file creation is a single operation, affecting the file and all of its records, field groups, and fields. Typing <code>X</code> in the file prefix area and pressing F6 confirms the file creation and automatically submits for execution all the <var class="product">Model 204</var> commands constructed for this file and its entries.</p> | |||
==Execution options== | ==Execution options== | ||
<p>The dictionary administrator determines the default execution option and the available options. Execution options determine how and when FILEMGMT executes the commands on the Execute Commands screen.</p> | <p> | ||
<p>If your system supports more than one mode, you can override the default by specifying the option you want on the ACTIVE or INACTIVE line of the Execute Commands screen. Your choice affects only the items you select for the current session. The default option is restored for subsequent sessions.</p> | The dictionary administrator determines the default execution option and the available options. Execution options determine how and when FILEMGMT executes the commands on the Execute Commands screen.</p> | ||
<p>FILEMGMT provides the following options:</p> | <p> | ||
<table> | If your system supports more than one mode, you can override the default by specifying the option you want on the <b>ACTIVE</b> or <b>INACTIVE</b> line of the Execute Commands screen. Your choice affects only the items you select for the current session. The default option is restored for subsequent sessions.</p> | ||
<p> | |||
FILEMGMT provides the following options:</p> | |||
<table class="thJustBold"> | |||
<tr class="head"> | <tr class="head"> | ||
<th>Option</th> | <th>Option</th> | ||
<th>Function</th> | <th>Function</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Active Immediate </th> | ||
<td>Commands for selected items are executed immediately after FILEMGMT verifies that you have the necessary privileges to execute the commands. </td> | <td>Commands for selected items are executed immediately after FILEMGMT verifies that you have the necessary privileges to execute the commands. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Active Delayed </th> | ||
<td | <td>Commands for selected items are flagged as pending after FILEMGMT verifies that you have the necessary privileges to execute the commands. FILEMGMT executes the commands at a later time in batch mode. | ||
<p> | |||
Refer to the appropriate section of the Rocket Model 204 Installation Guide for your operating system for more information. </p> | |||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Inactive USE File </th> | ||
<td | <td>Commands for selected items are written to a <var class="product">Model 204</var> directed output (USE) file. | ||
<p> | |||
Your run must contain one of these print statements:</p> | |||
<ul> | <ul> | ||
<li>OUT<var class="term">xxxx</var> file DD statement in the JCL option (z/OS and z/VSE)</li> | <li>OUT<var class="term">xxxx</var> file DD statement in the JCL option (z/OS and z/VSE)</li> | ||
<li>DEFINE PRINTER statement in the <var class="product">Model 204</var> CCAIN data stream (z/VM) </li> | |||
<li><var>DEFINE PRINTER</var> statement in the <var class="product">Model 204</var> CCAIN data stream (z/VM) </li> | |||
</ul> | </ul> | ||
<p>If no name is specified, FILEMGMT uses the default file, OUTFILE. If OUTFILE is used, it must be defined with the option DISP=MOD. </p> | <p> | ||
If no name is specified, FILEMGMT uses the default file, <code>OUTFILE</code>. If <code>OUTFILE</code> is used, it must be defined with the option <code>DISP=MOD</code>. </p> | |||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th nowrap>Inactive Procedure File </th> | ||
<td | <td>Commands for selected items are written to a specified procedure file. | ||
<p> | |||
The procedure file name has the format:</p> | |||
<p class=" | <p class="syntax">FIM.<span class="term">acct.date.time</span> | ||
</p> | </p> | ||
<p> | <p> | ||
Where:</p> | |||
<ul> | <ul> | ||
<li>acct is your login account name.</li> | <li><var class="term">acct</var> is your login account name.</li> | ||
<li><var class="term">date</var> is the current date (<var>MMDDYY</var>).</li> | <li><var class="term">date</var> is the current date (<var>MMDDYY</var>).</li> | ||
<li><var class="term">time</var> is the current time (<var>HHMMSS</var>).</li> | <li><var class="term">time</var> is the current time (<var>HHMMSS</var>).</li> | ||
Line 97: | Line 115: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p>Follow these guidelines when determining execution options:</p> | <p> | ||
Follow these guidelines when determining execution options:</p> | |||
<ul> | <ul> | ||
<li>If you select the ACTIVE option, FILEMGMT checks all necessary passwords and privileges. These must be correct before FILEMGMT actually executes the command. If your login account password or the file password is invalid for a particular command, FILEMGMT reports an error condition on the line containing the file name.</li> | <li>If you select the <b>ACTIVE</b> option, FILEMGMT checks all necessary passwords and privileges. These must be correct before FILEMGMT actually executes the command. If your login account password or the file password is invalid for a particular command, FILEMGMT reports an error condition on the line containing the file name.</li> | ||
<li>If the default is INACTIVE, and both USE and procedure files are available, the two options have | |||
<li>INACTIVE option does not generate passwords for OPEN statements. </li> | <li>If the default is <b>INACTIVE</b>, and both <var>USE</var> and procedure files are available, the two options have <code>X</code>s in the prefix area. Delete one of the <code>X</code>s before you execute commands in the <var>INACTIVE</var> mode.</li> | ||
<li>INACTIVE option is required if you are recreating or copying a file from an earlier <var class="product">Model 204</var> release and choose to retain the file format of the earlier release.</li> | |||
<li><b>INACTIVE</b> option does not generate passwords for <var>OPEN</var> statements. </li> | |||
<li><b>INACTIVE</b> option is required if you are recreating or copying a file from an earlier <var class="product">Model 204</var> release and choose to retain the file format of the earlier release.</li> | |||
</ul> | </ul> | ||
<p>The Execute Commands screen displays all the execution options supported by your system, and lets you change (and refine) the option you selected on the File Definition - Organization screen. The option you select on the Execute Commands screen applies to all the commands you select from the screen before you press the | <p> | ||
<p>FILEMGMT displays or prompts you for the following information | The Execute Commands screen displays all the execution options supported by your system, and lets you change (and refine) the option you selected on the [[Creating a file with FILEMGMT#Defining file organization|File Definition - Organization screen]]. The option you select on the Execute Commands screen applies to all the commands you select from the screen before you press the F6 (EXEcute) key.</p> | ||
<table> | <p> | ||
FILEMGMT displays or prompts you for the following information:</p> | |||
<table class="thJustBold"> | |||
<tr class="head"> | <tr class="head"> | ||
<th> Prompt</th> | <th> Prompt</th> | ||
<th>Response </th> | <th>Response </th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th nowrap>REPORT Use</th> | ||
<td | <td>Type the name of a directed output (<var>USE</var>) file to which FILEMGMT is to write a printable report. The report has the same format as the Execute Commands screen, except that the <b>REPORT</b> line shows the user account name and the current date and time. | ||
<p> | |||
If you select this option, your run must contain one of these print statements: </p> | |||
<ul> | <ul> | ||
<li>OUT<var class="term">xxxx</var> file DD statement in the JCL option (z/OS and z/VSE) </li> | <li>OUT<var class="term">xxxx</var> file DD statement in the JCL option (z/OS and z/VSE) </li> | ||
<li>DEFINE PRINTER statement in the <var class="product">Model 204</var> CCAIN data stream (z/VM)</li> | |||
<li><var>DEFINE PRINTER</var> statement in the <var class="product">Model 204</var> CCAIN data stream (z/VM)</li> | |||
</ul> | </ul> | ||
<p>Note: Of the four command options described below and in the preceding | <p class="note"><b>Note:</b> Of the four command options described below and in the preceding <b>Execution Options</b> section, the screen prompts only for those that were selected by the DBA on the Dictionary Administration File Management Facility screen. </p> | ||
</td> | </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>ACTIVE </th> | ||
<td>Commands can be executed in immediate or delayed mode. </td> | <td>Commands can be executed in immediate or delayed mode. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th> Immediate </th> | ||
<td>Commands are executed as soon as you issue the EXEcute command on the Execute Commands screen and FILEMGMT confirms your privileges. FILEMGMT displays X if this is the default for your system. You can type X to select this option if no X is displayed.</td> | <td>Commands are executed as soon as you issue the <b>EXEcute</b> command on the Execute Commands screen and FILEMGMT confirms your privileges. FILEMGMT displays <code>X</code> if this is the default for your system. You can type <code>X</code> to select this option if no <code>X</code> is displayed.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th> Delayed </th> | ||
<td>Commands are ready for execution. They are assigned a status of pending and can be subsequently executed in batch mode. FILEMGMT displays X if this is the default for your system. You can type X to select this option if no X is displayed. </td> | <td>Commands are ready for execution. They are assigned a status of pending and can be subsequently executed in batch mode. FILEMGMT displays <code>X</code> if this is the default for your system. You can type <code>X</code> to select this option if no <code>X</code> is displayed. </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>INACTIVE </th> | ||
<td>Commands can be written to a <var class="product">Model 204</var> directed output (USE) file or stored in a procedure.</td> | <td>Commands can be written to a <var class="product">Model 204</var> directed output (<var>USE</var>) file or stored in a procedure.</td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th> Use </th> | ||
<td>Commands are written to the USE file specified to the right of the Use prompt. The necessary print statements are the same as for the REPORT Use prompt. Select this option by typing X to the left of the prompt.</td> | <td>Commands are written to the <var>USE</var> file specified to the right of the <b>Use</b> prompt. The necessary print statements are the same as for the <b>REPORT Use</b> prompt. Select this option by typing <code>X</code> to the left of the prompt.</td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>ProcFile </th> | ||
<td>Commands are written to the procedure file specified to the right of the ProcFile prompt. The format for the procedure | <td>Commands are written to the procedure file specified to the right of the <b>ProcFile</b> prompt. The format for the procedure file name is described in the <b>Execution options</b> section. Select this option by typing <code>X</code> to the left of the prompt.</td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>Password </th> | ||
<td>If you selected the | <td>If you selected the <b>ProcFile</b> option, enter the password (if any) associated with the procedure file. Type a valid password for the file (1-10 characters containing no spaces, commas, or colons).</td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>Filename </th> | ||
<td | <td>FILEMGMT displays the name of the file that you entered on the primary screen, or displays the names of all files staged under your user ID. | ||
<p> | |||
If the file is currently staged (for example, for a file creation), you can select the file by typing <code>X</code> in the prefix area to the left of the file name. The absence of a prefix prompt means that the file is no longer staged for a command. </p> | |||
<p>FILEMGMT displays on the same line as the file name: </p> | <p> | ||
FILEMGMT displays on the same line as the file name: </p> | |||
<ul> | <ul> | ||
<li>FILEMGMT command requested for the file | <li>FILEMGMT command requested for the file. | ||
< | <p> | ||
See [[#Commands generated from FILEMGMT|Commands generated from FILEMGMT]] for a listing of the commands. </p></li> | |||
< | |||
<li> Status of the command | <li>Status of the command. | ||
< | <p> | ||
A status preceded by an asterisk (<tt>*</tt>) indicates that the command cannot be executed until you provide FILEMGMT with more information. Any other status indicator shows the results of the most recent execution attempt. A blank status indicates the command was never selected for execution.</p></li> | |||
</ | |||
</tr> | <table class="thJustBold"> | ||
<tr class="head"> | |||
<th>Status</th> | |||
<th>Meaning</th></tr> | |||
<tr> | <tr> | ||
< | <th>CmdGen'd</th> | ||
<td>Commands were generated in INACTIVE mode. </td> | <td>Commands were generated in <b>INACTIVE</b> mode. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th> EXEC PENDING</th> | ||
<td> | <td> | ||
<p>You executed a command in ACTIVE | <p> | ||
<p>To recover, run DDGEN to ensure your dictionary is synchronized, and reissue the command. </p> | You executed a command in <b>ACTIVE Immediate</b> mode and were restarted or the system crashed before the command was completed.</p> | ||
</td> | <p> | ||
</tr> | To recover, run <var>DDGEN</var> to ensure your dictionary is synchronized, and reissue the command. </p> | ||
</td></tr> | |||
<tr> | <tr> | ||
< | <th> FilePriv </th> | ||
<td>The operation failed because you have insufficient file privileges. </td> | <td>The operation failed because you have insufficient file privileges. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th> Fistat </th> | ||
<td>The file is physically or logically inconsistent. (See | <td>The file is physically or logically inconsistent. (See [[File_integrity_and_recovery#Restarts|Restarts]].)</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th> M204.<i>nnnn</i> </th> | ||
<td>The operation failed because of an incorrect password or some other error condition. "nnnn | <td>The operation failed because of an incorrect password or some other error condition. <var class="term">nnnn</var> indicates the <var class="product">Model 204</var> error message number. </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>OpenError </th> | ||
<td>FILEMGMT was unable to open the file. </td> | <td>FILEMGMT was unable to open the file. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Pending </th> | ||
<td>The command was selected but is not yet executed. Pending status occurs in ACTIVE DELAYED mode. </td> | <td>The command was selected but is not yet executed. Pending status occurs in ACTIVE DELAYED mode. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>PrevExecuted </th> | ||
<td>The command for a field was previously executed as part of a different record or field group. </td> | <td>The command for a field was previously executed as part of a different record or field group. </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th nowrap>*REC DEFN REQD</th> | ||
<td>The record must be completely defined before the command for the record can be executed. </td> | <td>The record must be completely defined before the command for the record can be executed. </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>SizeError </th> | ||
<td>The available space is insufficient for an INCREASE command. </td> | <td>The available space is insufficient for an <var>INCREASE</var> command. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>*SIZING REQD </th> | ||
<td>The file was staged for CREATE, but sizing information was not provided.</td> | <td>The file was staged for <var>CREATE</var>, but sizing information was not provided.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Successful </th> | ||
<td>The command was executed successfully. </td> | <td>The command was executed successfully. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>UserPriv </th> | ||
<td>You attempted to execute a <var>CREATE</var> command and do not have superuser privileges. | |||
<td | The date (MM/DD/YY) the command was requested. If the command status is the result of an error or incomplete execution, an asterisk appears in front of the date. | ||
</td></tr> | |||
</table></ul></td></tr> | |||
</ul> | |||
</td> | |||
</tr> | |||
<tr> | <tr> | ||
< | <th>Password </th> | ||
<td>If required, type a valid password for the file (1-10 characters containing no spaces, commas, or colons). FILEMGMT indicates on the same line whether the file is active or inactive. | <td>If required, type a valid password for the file (1-10 characters containing no spaces, commas, or colons). FILEMGMT indicates on the same line whether the file is active or inactive. <b>Active</b> or <b>Inactive</b> indicates the mode in which the commands for this file were last executed. If you re-execute the commands, you can change the execution mode by selecting another option at the top area of the screen. For more information, see the discussion of [[#Execution options|execution options]], above.</td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
< | <th>Record</th> | ||
<td>FILEMGMT displays the name of a record, | <td>FILEMGMT displays the name of a record, field group, or field for which a command Field has been generated. The command, status, and execution date are displayed on the same line. For more information about the line, see the <b>Filename</b> prompt, above.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
==Execute Commands screen commands== | ==Execute Commands screen commands== | ||
<p>To issue a command, press a PF key or type a command name at the prompt (===>) and press Enter.</p> | <p> | ||
To issue a command, press a PF key or type a command name at the prompt (<b>===></b>) and press Enter.</p> | |||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 245: | Line 288: | ||
<th>Meaning</th> | <th>Meaning</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>F1 </td> | ||
<td>HELp </td> | <td>HELp </td> | ||
<td>Displays | <td>Displays Help text for the Execute Commands screen.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>F3 </td> | ||
<td>QUIt </td> | <td>QUIt </td> | ||
<td>Exits from the Execute Commands screen and returns to the primary screen. Commands that were executed by pressing | <td>Exits from the Execute Commands screen and returns to the primary screen. Commands that were executed by pressing F6 cannot be backed out by using <b>QUIt</b>. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>F5 </td> | ||
<td>REPort </td> | <td>REPort </td> | ||
<td>Writes a report of the commands to the OUT<var class="term">xxxx</var> file. The OUT<var class="term">xxxx</var> file is the file specified in response to the REPORT Use prompt. </td> | <td>Writes a report of the commands to the OUT<var class="term">xxxx</var> file. The OUT<var class="term">xxxx</var> file is the file specified in response to the <b>REPORT Use</b> prompt. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>F6 </td> | ||
<td>EXEcute </td> | <td>EXEcute </td> | ||
<td | <td>Executes, sets as pending, or writes to a file for later execution the commands that you selected on the Execute Commands screen. The execution mode depends on the <b>ACTIVE</b> or <b>INACTIVE</b> selection. | ||
<p> | |||
<p>The Execute Commands screen is redisplayed after you press | The Execute Commands screen is redisplayed after you press F6 to show the updated status of all commands. </p></td></tr> | ||
</td> | |||
</tr> | |||
<tr> | <tr> | ||
<td> | <td>F7 </td> | ||
<td>BACkward </td> | <td>BACkward </td> | ||
<td>Scrolls backward one screen. If you type BAC at the prompt (===>), followed by a number, FILEMGMT scrolls backward the specified number of lines. </td> | <td>Scrolls backward one screen. If you type <code>BAC</code> at the prompt (<b>===></b>), followed by a number, FILEMGMT scrolls backward the specified number of lines. </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
<td> | <td>F8 </td> | ||
<td>FORward </td> | <td>FORward </td> | ||
<td>Scrolls forward one screen. If you type FOR at the prompt (===>), followed by a number, FILEMGMT scrolls forward the specified number of lines.</td> | <td>Scrolls forward one screen. If you type <code>FOR</code> at the prompt (<b>===></b>), followed by a number, FILEMGMT scrolls forward the specified number of lines.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>F11 </td> | ||
<td>DELcmds </td> | <td>DELcmds </td> | ||
<td>Takes you to the Delete Commands screen.</td> | <td>Takes you to the Delete Commands screen.</td></tr> | ||
</tr> | |||
</table> | </table> | ||
==Commands generated from FILEMGMT== | ==Commands generated from FILEMGMT== | ||
<p>The following tables list the commands that FILEMGMT generates for each entity, the screens from which the commands are generated, and the actions that the commands perform. </p> | <p>The following tables list the commands that FILEMGMT generates for each entity, the screens from which the commands are generated, and the actions that the commands perform. </p> | ||
Line 294: | Line 341: | ||
<th>Action</th> | <th>Action</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>CREATE</td> | <td>CREATE</td> | ||
<td | <td nowrap>File Definition screens | ||
<p>File Size Definition screen</p> | <p>File Size Definition screen</p> | ||
<p>File Copy screen</p> | <p>File Copy screen</p></td> | ||
</td> | <td>Status is <b>*SIZING REQD</b>; command cannot be executed until sizing is performed. | ||
<td> | |||
< | |||
<p>Creates a physical file and links a file definition to the file.</p> | <p>Creates a physical file and links a file definition to the file.</p> | ||
<p>Status is *SIZING REQD; command cannot be executed until sizing is performed. Sizing is required in order to link a data set name to the physical file.</p> | <p>Status is <b>*SIZING REQD</b>; command cannot be executed until sizing is performed. Sizing is required in order to link a data set name to the physical file.</p> | ||
</td> | </td></tr> | ||
</tr> | |||
<tr> | <tr> | ||
<td>RECREATE</td> | <td>RECREATE</td> | ||
<td | <td>File Definition screens | ||
<p>File Size Definition screen</p></td> | |||
<td>Recreates the physical file and links a file definition to the file. | |||
<p>File Size Definition screen</p> | |||
</td> | |||
<td> | |||
<p>Recreates the physical file and links a file definition to the file.</p> | <p>Recreates the physical file and links a file definition to the file.</p> | ||
</td></tr> | |||
</td> | |||
</tr> | |||
<tr> | <tr> | ||
<td>INCREASE</td> | <td>INCREASE</td> | ||
<td | <td>File Size Definition screen | ||
<p>Increase/Decrease screen</p></td> | |||
<p>Increase/Decrease screen</p> | <td>Resets Table B and Table D sizes. | ||
</td> | <p>Resets Table B and Table D sizes.</p></td> | ||
<td | |||
<p>Resets Table B and Table D sizes.</p> | |||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DECREASE</td> | <td>DECREASE</td> | ||
<td | <td>File Size Definition screen | ||
<p>Increase/Decrease screen</p></td> | |||
<p>Increase/Decrease screen</p> | <td>Resets Table B and Table D sizes | ||
</td> | <p>Resets Table B and Table D sizes.</p></td> | ||
<td | |||
<p>Resets Table B and Table D sizes.</p> | |||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>INC DSN</td> | <td>INC DSN</td> | ||
Line 347: | Line 381: | ||
<td>Adds data sets for the file.</td> | <td>Adds data sets for the file.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>RESET</td> | <td>RESET</td> | ||
<td | <td>File Size Definition screen | ||
<p>File Parameter Reset screen</p> | <p>File Parameter Reset screen</p> | ||
</td> | </td> | ||
<td | |||
<td>Resets file sizing parameters for an existing file. | |||
<p>Resets file organization and security parameters.</p> | <p>Resets file organization and security parameters.</p></td> | ||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>SECURE</td> | <td>SECURE</td> | ||
Line 363: | Line 397: | ||
<td>Secures <var class="product">Model 204</var> password.</td> | <td>Secures <var class="product">Model 204</var> password.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DESECURE </td> | <td>DESECURE </td> | ||
Line 368: | Line 403: | ||
<td>Desecures <var class="product">Model 204</var> password.</td> | <td>Desecures <var class="product">Model 204</var> password.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>INITIALIZE</td> | <td>INITIALIZE</td> | ||
Line 373: | Line 409: | ||
<td>Initializes the file.</td> | <td>Initializes the file.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DELETE</td> | <td>DELETE</td> | ||
Line 387: | Line 424: | ||
<th>Action</th> | <th>Action</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DEFINE</td> | <td>DEFINE</td> | ||
<td | <td>Field Name List screen | ||
<p>Field Attributes screen</p> | <p>Field Attributes screen</p> | ||
<p>Field Copy screen, if fields are selected for copying</p> | <p>Field Copy screen, if fields are selected for copying</p> | ||
<p>Record Copy screen</p> | <p>Record Copy screen</p> | ||
<p>File Size Definition screen, if the file is to be recreated</p> | <p>File Size Definition screen, if the file is to be recreated</p></td> | ||
</td> | |||
<td> | <td>Defines the field with default attributes. | ||
<p>Defines the field | <p>Defines the field.</p> | ||
<p>Defines the field.</p> | <p>Defines the field.</p> | ||
<p>Defines the field.</p> | <p>Defines the field.</p> | ||
<p>Defines the field.</p> | <p>Defines the field.</p> | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>REDEFINE</td> | <td>REDEFINE</td> | ||
Line 410: | Line 446: | ||
<td>Redefines the field.</td> | <td>Redefines the field.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DELETE</td> | <td>DELETE</td> | ||
Line 415: | Line 452: | ||
<td>Deletes the field from <var class="product">Model 204</var> and the dictionary.</td> | <td>Deletes the field from <var class="product">Model 204</var> and the dictionary.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>RENAME</td> | <td>RENAME</td> | ||
Line 420: | Line 458: | ||
<td>Renames the field.</td> | <td>Renames the field.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>R/R</td> | <td>R/R</td> | ||
Line 427: | Line 466: | ||
</table> | </table> | ||
==Record | ===Record commands=== | ||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 434: | Line 473: | ||
<th>Action</th> | <th>Action</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DEFINE</td> | <td>DEFINE</td> | ||
<td> | <td> | ||
< | <ol class="low-al"> | ||
</ | <li>Record Name List screen</li> | ||
< | <li>Record Definition screen</li> | ||
< | <li>Field Definition screen, if the file has no records defined</li> | ||
< | <li>File Recreate screen, if the field is sorted, hashed, or has record security, and no record has been explicitly defined</li> | ||
< | <li>File Copy screen, if records are selected for copying</li> | ||
< | <li>File Copy screen, if no record has been defined to the file</li> | ||
< | <li>Record Copy screen</li> | ||
< | <li>File Size Definition screen, if the file is to be recreated</li> | ||
</td> | </ol></td> | ||
<td> | <td> | ||
< | <ol class="low-al"> | ||
< | <li>Status is <b>*REC DEFN REQD</b>; cannot be executed until the record is defined. </li> | ||
< | <li>Defines the record.</li> | ||
</ | <li>Status is <b>*REC DEFN REQD</b>; cannot be executed until the record is defined.</li> | ||
< | <li>Defines the record.</li> | ||
<li>Defines the record.</li> | |||
<li>Status is <b>*REC DEFN REQD</b>; cannot be executed until the record is defined.</li> | |||
<li>Defines the record.</li> | |||
<li>Defines the record.</li> | |||
</ol></td> | |||
</tr> | |||
<tr> | <tr> | ||
<td>REDEFINE</td> | <td>REDEFINE</td> | ||
Line 467: | Line 506: | ||
<td>Redefines the record.</td> | <td>Redefines the record.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DELETE</td> | <td>DELETE</td> | ||
Line 472: | Line 512: | ||
<td>Deletes the record definition from the dictionary.</td> | <td>Deletes the record definition from the dictionary.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>RENAME</td> | <td>RENAME</td> | ||
Line 477: | Line 518: | ||
<td>Renames the record.</td> | <td>Renames the record.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>R/R</td> | <td>R/R</td> | ||
Line 483: | Line 525: | ||
</tr> | </tr> | ||
</table> | </table> | ||
==Field group commands== | |||
===Field group commands=== | |||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 490: | Line 533: | ||
<th>Action</th> | <th>Action</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DEFINE</td> | <td>DEFINE</td> | ||
<td | <td>Field Group Definition screen | ||
<p> | |||
File Size Definition screen, if the file is to be recreated</p></td> | |||
</td> | <td>Defines the field group. | ||
<td | |||
<p>Defines the field group.</p> | <p>Defines the field group.</p> | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>REDEFINE </td> | <td>REDEFINE </td> | ||
Line 507: | Line 549: | ||
<td>Redefines the field group.</td> | <td>Redefines the field group.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DELETE</td> | <td>DELETE</td> | ||
Line 512: | Line 555: | ||
<td>Deletes the field group definition from the dictionary.</td> | <td>Deletes the field group definition from the dictionary.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>RENAME</td> | <td>RENAME</td> | ||
Line 517: | Line 561: | ||
<td>Renames the field group.</td> | <td>Renames the field group.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>R/R</td> | <td>R/R</td> | ||
Line 523: | Line 568: | ||
</tr> | </tr> | ||
</table> | </table> | ||
==Deleting commands== | ==Deleting commands== | ||
To delete commands: | To delete commands: | ||
<ol> | <ol> | ||
<li>Issue the DELcmds command (or press | <li>Issue the <b>DELcmds</b> command (or press F9) from the primary screen.</li> | ||
<li>Select the commands you want to delete and press | <li>Select the commands you want to delete, and press F6.</li> | ||
</ol> | </ol> | ||
[[Category:FILEMGMT application subsystem]] | [[Category:FILEMGMT application subsystem]] |
Latest revision as of 00:08, 2 April 2015
Executing commands
Commands are executed on the appropriate commands screen.
To invoke the Execute Commands screen:
- Issue the COMmands command (or press F6) from a screen that supports the command.
- Select the commands you want to execute and press F6.
Note: Before you execute commands in Active mode that were previously executed in Inactive mode, run DDGEN against the file. Running DDGEN ensures that the dictionary file definition reflects the current status of the Model 204 file.
Execute Commands screen
Press the F6 (COMmands) key from any screen that supports the command. FILEMGMT displays the Execute Commands screen:
- If you entered a file name on the primary screen, only the commands staged for that file are displayed.
- If you did not enter a file name on the primary screen, the commands for all the files staged under your user ID are displayed.
The following Execute Commands screen shows all the files staged under a user ID.
FILEMGMT Execute Commands Line 1 of 8 REPORT Use: OUTFILE ACTIVE _ Immediate _ Delayed INACTIVE _ Use: ________ X ProcFile: FMOUTPUT Password: _ Filename: ABC DECREASE 03/31/2005 _ Filename: ABC INCREASE 03/31/2005 Password: Inactive _ Record: ABC REDEFINE 03/31/2005 _ Field: EMPLOYEE FIRST NAME REDEFINE 03/31/2005 _ Field: EMPLOYEE ID REDEFINE 03/31/2005 _ Field: EMPLOYEE INITIAL REDEFINE 03/31/2005 _ Field: EMPLOYEE LAST NAME REDEFINE 03/31/2005 ===> 1=HELp 2= 3=QUIt 4= 5=REPort 6=EXEcute 7= 8= 9= 10= 11=DELcmds 12= |
FILEMGMT displays the names of files and their records, field groups, and fields. For each item, FILEMGMT displays the current or most recently executed command. To the right of the command, FILEMGMT displays the command status — for example, whether the command is pending, was executed successfully, or could not be executed because of an error condition or privilege violation. All the items that have been selected for execution at least once display a status. To the right of the status, FILEMGMT displays the date the command was requested.
FILEMGMT prompts you only for items that are currently staged by displaying an underscore character (_) in the prefix area to the left of the item name.
If a requested operation affects a set of records, field groups, or fields (for example, a file creation or record definition), FILEMGMT displays a prefix prompt only for the highest order of entity type. For example, file creation is a single operation, affecting the file and all of its records, field groups, and fields. Typing X
in the file prefix area and pressing F6 confirms the file creation and automatically submits for execution all the Model 204 commands constructed for this file and its entries.
Execution options
The dictionary administrator determines the default execution option and the available options. Execution options determine how and when FILEMGMT executes the commands on the Execute Commands screen.
If your system supports more than one mode, you can override the default by specifying the option you want on the ACTIVE or INACTIVE line of the Execute Commands screen. Your choice affects only the items you select for the current session. The default option is restored for subsequent sessions.
FILEMGMT provides the following options:
Option | Function |
---|---|
Active Immediate | Commands for selected items are executed immediately after FILEMGMT verifies that you have the necessary privileges to execute the commands. |
Active Delayed | Commands for selected items are flagged as pending after FILEMGMT verifies that you have the necessary privileges to execute the commands. FILEMGMT executes the commands at a later time in batch mode.
Refer to the appropriate section of the Rocket Model 204 Installation Guide for your operating system for more information. |
Inactive USE File | Commands for selected items are written to a Model 204 directed output (USE) file.
Your run must contain one of these print statements:
If no name is specified, FILEMGMT uses the default file, |
Inactive Procedure File | Commands for selected items are written to a specified procedure file.
The procedure file name has the format: FIM.acct.date.time Where:
|
Follow these guidelines when determining execution options:
- If you select the ACTIVE option, FILEMGMT checks all necessary passwords and privileges. These must be correct before FILEMGMT actually executes the command. If your login account password or the file password is invalid for a particular command, FILEMGMT reports an error condition on the line containing the file name.
- If the default is INACTIVE, and both USE and procedure files are available, the two options have
X
s in the prefix area. Delete one of theX
s before you execute commands in the INACTIVE mode. - INACTIVE option does not generate passwords for OPEN statements.
- INACTIVE option is required if you are recreating or copying a file from an earlier Model 204 release and choose to retain the file format of the earlier release.
The Execute Commands screen displays all the execution options supported by your system, and lets you change (and refine) the option you selected on the File Definition - Organization screen. The option you select on the Execute Commands screen applies to all the commands you select from the screen before you press the F6 (EXEcute) key.
FILEMGMT displays or prompts you for the following information:
Prompt | Response | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
REPORT Use | Type the name of a directed output (USE) file to which FILEMGMT is to write a printable report. The report has the same format as the Execute Commands screen, except that the REPORT line shows the user account name and the current date and time.
If you select this option, your run must contain one of these print statements:
Note: Of the four command options described below and in the preceding Execution Options section, the screen prompts only for those that were selected by the DBA on the Dictionary Administration File Management Facility screen. | ||||||||||||||||||||||||||||
ACTIVE | Commands can be executed in immediate or delayed mode. | ||||||||||||||||||||||||||||
Immediate | Commands are executed as soon as you issue the EXEcute command on the Execute Commands screen and FILEMGMT confirms your privileges. FILEMGMT displays X if this is the default for your system. You can type X to select this option if no X is displayed. |
||||||||||||||||||||||||||||
Delayed | Commands are ready for execution. They are assigned a status of pending and can be subsequently executed in batch mode. FILEMGMT displays X if this is the default for your system. You can type X to select this option if no X is displayed. | ||||||||||||||||||||||||||||
INACTIVE | Commands can be written to a Model 204 directed output (USE) file or stored in a procedure. | ||||||||||||||||||||||||||||
Use | Commands are written to the USE file specified to the right of the Use prompt. The necessary print statements are the same as for the REPORT Use prompt. Select this option by typing X to the left of the prompt. | ||||||||||||||||||||||||||||
ProcFile | Commands are written to the procedure file specified to the right of the ProcFile prompt. The format for the procedure file name is described in the Execution options section. Select this option by typing X to the left of the prompt. | ||||||||||||||||||||||||||||
Password | If you selected the ProcFile option, enter the password (if any) associated with the procedure file. Type a valid password for the file (1-10 characters containing no spaces, commas, or colons). | ||||||||||||||||||||||||||||
Filename | FILEMGMT displays the name of the file that you entered on the primary screen, or displays the names of all files staged under your user ID.
If the file is currently staged (for example, for a file creation), you can select the file by typing FILEMGMT displays on the same line as the file name:
| ||||||||||||||||||||||||||||
Password | If required, type a valid password for the file (1-10 characters containing no spaces, commas, or colons). FILEMGMT indicates on the same line whether the file is active or inactive. Active or Inactive indicates the mode in which the commands for this file were last executed. If you re-execute the commands, you can change the execution mode by selecting another option at the top area of the screen. For more information, see the discussion of execution options, above. | ||||||||||||||||||||||||||||
Record | FILEMGMT displays the name of a record, field group, or field for which a command Field has been generated. The command, status, and execution date are displayed on the same line. For more information about the line, see the Filename prompt, above. |
Execute Commands screen commands
To issue a command, press a PF key or type a command name at the prompt (===>) and press Enter.
Key | Command | Meaning |
---|---|---|
F1 | HELp | Displays Help text for the Execute Commands screen. |
F3 | QUIt | Exits from the Execute Commands screen and returns to the primary screen. Commands that were executed by pressing F6 cannot be backed out by using QUIt. |
F5 | REPort | Writes a report of the commands to the OUTxxxx file. The OUTxxxx file is the file specified in response to the REPORT Use prompt. |
F6 | EXEcute | Executes, sets as pending, or writes to a file for later execution the commands that you selected on the Execute Commands screen. The execution mode depends on the ACTIVE or INACTIVE selection.
The Execute Commands screen is redisplayed after you press F6 to show the updated status of all commands. |
F7 | BACkward | Scrolls backward one screen. If you type BAC at the prompt (===>), followed by a number, FILEMGMT scrolls backward the specified number of lines. |
F8 | FORward | Scrolls forward one screen. If you type FOR at the prompt (===>), followed by a number, FILEMGMT scrolls forward the specified number of lines. |
F11 | DELcmds | Takes you to the Delete Commands screen. |
Commands generated from FILEMGMT
The following tables list the commands that FILEMGMT generates for each entity, the screens from which the commands are generated, and the actions that the commands perform.
File commands
Command | Generated from... | Action |
---|---|---|
CREATE | File Definition screens
File Size Definition screen File Copy screen |
Status is *SIZING REQD; command cannot be executed until sizing is performed.
Creates a physical file and links a file definition to the file. Status is *SIZING REQD; command cannot be executed until sizing is performed. Sizing is required in order to link a data set name to the physical file. |
RECREATE | File Definition screens
File Size Definition screen |
Recreates the physical file and links a file definition to the file.
Recreates the physical file and links a file definition to the file. |
INCREASE | File Size Definition screen
Increase/Decrease screen |
Resets Table B and Table D sizes.
Resets Table B and Table D sizes. |
DECREASE | File Size Definition screen
Increase/Decrease screen |
Resets Table B and Table D sizes
Resets Table B and Table D sizes. |
INC DSN | Increase/Decrease screen | Adds data sets for the file. |
RESET | File Size Definition screen
File Parameter Reset screen |
Resets file sizing parameters for an existing file.
Resets file organization and security parameters. |
SECURE | Primary screen | Secures Model 204 password. |
DESECURE | Primary screen | Desecures Model 204 password. |
INITIALIZE | File Initialize screen | Initializes the file. |
DELETE | File Delete screen | Deletes file references from the dictionary. |
Field commands
Command | Generated from... | Action |
---|---|---|
DEFINE | Field Name List screen
Field Attributes screen Field Copy screen, if fields are selected for copying Record Copy screen File Size Definition screen, if the file is to be recreated |
Defines the field with default attributes.
Defines the field. Defines the field. Defines the field. Defines the field. |
REDEFINE | Field Attributes screen | Redefines the field. |
DELETE | Field Attributes screen | Deletes the field from Model 204 and the dictionary. |
RENAME | Field Attributes screen | Renames the field. |
R/R | Field Attributes screen | Redefines and renames the field. |
Record commands
Command | Generated from... | Action |
---|---|---|
DEFINE |
|
|
REDEFINE | Record Definition screen | Redefines the record. |
DELETE | Record Definition screen | Deletes the record definition from the dictionary. |
RENAME | Record Definition screen | Renames the record. |
R/R | Record Definition screen | Redefines and renames the record. |
Field group commands
Command | Generated from... | Action |
---|---|---|
DEFINE | Field Group Definition screen
File Size Definition screen, if the file is to be recreated |
Defines the field group.
Defines the field group. |
REDEFINE | Field Group Definition screen | Redefines the field group. |
DELETE | Field Group List screen | Deletes the field group definition from the dictionary. |
RENAME | Field Group List screen | Renames the field group. |
R/R | Field Group Definition screen | Redefines and renames the field group. |
Deleting commands
To delete commands:
- Issue the DELcmds command (or press F9) from the primary screen.
- Select the commands you want to delete, and press F6.