Adding record definitions with FILEMGMT: Difference between revisions
m (Admin moved page Adding Record Definitions with FILEMGMT to Adding record definitions with FILEMGMT without leaving a redirect) |
m (more conversion cleanup) |
||
Line 1: | Line 1: | ||
==Record maintenance== | ==Record maintenance== | ||
<p>FILEMGMT provides you with an interface for performing all your record maintenance operations. This section describes how to perform the following operations:</p> | <p> | ||
FILEMGMT provides you with an interface for performing all your record maintenance operations. This section describes how to perform the following operations:</p> | |||
<ul> | <ul> | ||
<li>List records in new and existing files.</li> | <li>List records in new and existing files.</li> | ||
Line 7: | Line 8: | ||
<li>Stage records in preparation for executing DEFINE, REDEFINE, DELETE, and RENAME commands. </li> | <li>Stage records in preparation for executing DEFINE, REDEFINE, DELETE, and RENAME commands. </li> | ||
</ul> | </ul> | ||
==Record Name List screen== | ==Record Name List screen== | ||
<p>To display the Record Name List screen, you can optionally:</p> | <p> | ||
To display the Record Name List screen, you can optionally:</p> | |||
<ul> | <ul> | ||
<li>Press the PF4 (RECords) key from the Field Attributes screen. FILEMGMT displays the Record Name List screen in DEFINE mode.</li> | <li>Press the PF4 (RECords) key from the Field Attributes screen. FILEMGMT displays the Record Name List screen in DEFINE mode.</li> | ||
<li>Select a RECORD Maintenance function from the primary screen. FILEMGMT displays the Record Name List screen in the mode corresponding to the selected function. </li> | <li>Select a RECORD Maintenance function from the primary screen. FILEMGMT displays the Record Name List screen in the mode corresponding to the selected function. </li> | ||
</ul> | </ul> | ||
<p>You use the Record Name List screen to:</p> | <p> | ||
You use the Record Name List screen to:</p> | |||
<ul> | <ul> | ||
<li>Specify the names and frequency of the records in a file you are creating. A record name represents a record type.</li> | <li>Specify the names and frequency of the records in a file you are creating. A record name represents a record type.</li> | ||
<li>View records in an existing file, define additional records, and select records you want to redefine, delete, or rename. </li> | <li>View records in an existing file, define additional records, and select records you want to redefine, delete, or rename. </li> | ||
</ul> | </ul> | ||
<p>If you are defining new records for a new or existing file, FILEMGMT displays the Record Name List screen in DEFINE mode:</p> | <p> | ||
If you are defining new records for a new or existing file, FILEMGMT displays the Record Name List screen in DEFINE mode:</p> | |||
<table> | <table> | ||
<tr> | <tr> | ||
<td> | <td> | ||
Line 40: | Line 46: | ||
_ ____________________ | ________ | _______ | | | _ ____________________ | ________ | _______ | | | ||
_ ____________________ | ________ | _______ | | | _ ____________________ | ________ | _______ | | | ||
===> | ===> | ||
1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands | 1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands | ||
7= 8=FORward 9=SIZe 10= 11=RECdefn 12=END | 7= 8=FORward 9=SIZe 10= 11=RECdefn 12=END | ||
Line 51: | Line 57: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p> </p> | <p> | ||
<p>The above record name list has an entry for a record name with the same name as the file. FILEMGMT creates this entry automatically.</p> | </p> | ||
<p>You can perform these operations:</p> | <p> | ||
The above record name list has an entry for a record name with the same name as the file. FILEMGMT creates this entry automatically.</p> | |||
<p> | |||
You can perform these operations:</p> | |||
<ul> | <ul> | ||
<li>Rename the entry by typing over the displayed name.</li> | <li>Rename the entry by typing over the displayed name.</li> | ||
Line 60: | Line 69: | ||
<li>Proceed to the Record Definition screen to define the contents of the new entries.</li> | <li>Proceed to the Record Definition screen to define the contents of the new entries.</li> | ||
</ul> | </ul> | ||
<p>If you are redefining, deleting, or renaming records, FILEMGMT displays the Record Name List screen in the mode corresponding to your requested function.</p> | <p> | ||
<p>The following screen was invoked by selecting the REDEFINE function:</p> | If you are redefining, deleting, or renaming records, FILEMGMT displays the Record Name List screen in the mode corresponding to your requested function.</p> | ||
<p> | |||
The following screen was invoked by selecting the REDEFINE function:</p> | |||
<table> | <table> | ||
<tr> | <tr> | ||
<td> | <td> | ||
Line 74: | Line 86: | ||
_ DEPENDENTS________ | _2000___ | __20___ | 70.6% | | _ DEPENDENTS________ | _2000___ | __20___ | 70.6% | | ||
===> | ===> | ||
1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands | 1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands | ||
7= 8= 9=SIZe 10= 11=RECdefn 12=END | 7= 8= 9=SIZe 10= 11=RECdefn 12=END | ||
Line 93: | Line 105: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p>If you specified a particular record name on the primary screen, FILEMGMT displays an X in the prefix area of this record.</p> | <p> | ||
<p>Staged records display the command for which they are staged in the Cmd column. Nonstaged records have a blank in the Cmd column, as in the above screen. Staging is discussed in [[ FILEMGMT overview#Staging entries|Staging entries]].</p> | If you specified a particular record name on the primary screen, FILEMGMT displays an X in the prefix area of this record.</p> | ||
<p>You can scroll forward and backward to view additional record names by pressing the PF8 (FORward) and PF7 (BACkward) keys. You can scroll forward 100 lines, which corresponds to FILEMGMT's record number limit.</p> | <p> | ||
Staged records display the command for which they are staged in the Cmd column. Nonstaged records have a blank in the Cmd column, as in the above screen. Staging is discussed in [[ FILEMGMT overview#Staging entries|Staging entries]].</p> | |||
<p> | |||
You can scroll forward and backward to view additional record names by pressing the PF8 (FORward) and PF7 (BACkward) keys. You can scroll forward 100 lines, which corresponds to FILEMGMT's record number limit.</p> | |||
====Record Name List screen input==== | ====Record Name List screen input==== | ||
<p>FILEMGMT displays or prompts you for the following information:</p> | <p> | ||
<table> | 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>Filename </th> | ||
<td>FILEMGMT displays the name of the file that you entered on the primary screen.</td> | <td>FILEMGMT displays the name of the file that you entered on the primary screen.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Recordname </th> | ||
<td> | <td> | ||
<p>If you are creating a new file, FILEMGMT displays a single record name that is the same as the file name.</p> | <p> | ||
<p>If you are viewing an existing file and did not specify a particular record name on the primary screen, FILEMGMT lists all the records in the file.</p> | If you are creating a new file, FILEMGMT displays a single record name that is the same as the file name.</p> | ||
<p> | |||
If you are viewing an existing file and did not specify a particular record name on the primary screen, FILEMGMT lists all the records in the file.</p> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Cmd</th> | ||
<td> | <td> | ||
<p>Displays the status of the record shown on the line: | <p> | ||
Displays the status of the record shown on the line:</p> | |||
<ul> | <ul> | ||
<li>If the record is currently staged (in the process of being changed), FILEMGMT displays the command that was generated for the record. The command is one of the following: | |||
<table class="thJustBold"> | |||
<tr><th>***</th><td>Record name is new.</td></tr> | |||
<tr><th>DEF</th><td>Record is being defined.</td></tr> | |||
<tr><th>RED</th><td>Record is being read.</td></tr> | |||
<tr><th>DEL</th><td>Record is being deleted.</td></tr> | |||
<tr><th>REN</th><td>Record is being renamed. </td></tr> | |||
<tr><th>R/R</th><td>Record is being redefined and renamed. </td></tr> | |||
</table> | |||
<p> | |||
Record operations might be staged if you begin to define, redefine, delete, or rename records and then end your FILEMGMT session without executing the commands that were generated. When you begin a new session, these records are shown as being staged.</p> | |||
</li> | |||
<li>If the record is not currently staged, this column is blank. </li> | <li>If the record is not currently staged, this column is blank. </li> | ||
<li>If a record name is added during a DEFINE operation and you press Enter, this column contains ***. </li> | <li>If a record name is added during a DEFINE operation and you press <span style="font-variant:small-caps;">Enter</span>, this column contains asterisks (<tt>***</tt>). </li> | ||
</ul> | </ul> | ||
<p>A record's Cmd status determines whether you can issue a particular command for the record. | <p> | ||
A record's <b>Cmd</b> status determines whether you can issue a particular command for the record. [[#Command status|Command status]], below, is a table that summarizes your options (where an <code>X</code> indicates the command is valid for the record).</p> | |||
</td> | </td> | ||
<tr> | <tr> | ||
< | <th>No. of Records </th> | ||
<td | <td>Type the number of records of the specified record name to be stored in the file. For a new file, the number represents the initial number of records. Valid values are: | ||
<ul> | <ul> | ||
<li>1-16777216 for non-RDFS files </li> | <li>1-16777216 for non-RDFS files </li> | ||
Line 144: | Line 175: | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th nowrap>Expected Increase (%)</th> | ||
<td>Type the expected percentage of increase (0-100) in the number of records of the specified record name. The number represents the expected increase during the life of the file. If you do not enter a number in this column, FILEMGMT uses only | <td>Type the expected percentage of increase (0-100) in the number of records of the specified record name. The number represents the expected increase during the life of the file. If you do not enter a number in this column, FILEMGMT uses only <b>No. of Records</b> to calculate the size of the file. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <th>Occurrence in File </th> | ||
<td>FILEMGMT computes this value from | <td>FILEMGMT computes this value from <b>No. of Records</b> and <b>Expected Increase</b>, and it displays the value.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
===Record operations=== | ===Record operations=== | ||
<p>Follow these steps to stage records for a particular function. </p> | <p> | ||
Follow these steps to stage records for a particular function. </p> | |||
====Defining records==== | ====Defining records==== | ||
<p>To DEFINE records: </p> | <p> | ||
To DEFINE records: </p> | |||
<ol> | <ol> | ||
<li>Enter the record names in the "Recordname" column. | <li>Enter the record names in the "Recordname" column. | ||
<p>To enter new record names, type in the names (1-70 characters). Use the standard <var class="product">Model 204</var> record naming conventions | <p> | ||
To enter new record names, type in the names (1-70 characters). Use the standard <var class="product">Model 204</var> record naming conventions. | |||
<p>You can remove new names before you end the session. Type a D in the prefix area to the left of the new name. The deletion removes a line from the display, but does not affect the physical data. </p> | <p> | ||
To enter new records for an existing file, type the names at the bottom of the list. To enter a record name that is longer than the space provided (20 characters), position the cursor on the record name. Press the PF5 (WIDen) key to advance to the Widen screen. </p> | |||
<p> | |||
You can remove new names before you end the session. Type a D in the prefix area to the left of the new name. The deletion removes a line from the display, but does not affect the physical data. </p> | |||
</li> | </li> | ||
<li>Type X to the left of the record names to select them. </li> | <li>Type X to the left of the record names to select them. </li> | ||
<li>Press PF11 (RECdefn). | <li>Press PF11 (RECdefn). | ||
<p>The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for DEFINE. </p> | <p> | ||
The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for DEFINE. </p> | |||
</ol> | </ol> | ||
====Redefining records==== | ====Redefining records==== | ||
<p>To REDEFINE records: </p> | <p> | ||
To REDEFINE records: </p> | |||
<ol> | <ol> | ||
<li>On the main menu, using the record option, select option 2. | <li>On the main menu, using the record option, select option 2. | ||
<li>Type X to the left of the record names to select them. | <li>Type X to the left of the record names to select them. | ||
<li>Press PF11 (RECdefn). | <li>Press PF11 (RECdefn). | ||
<p>The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for REDEFINE.</p> </li> | <p> | ||
The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for REDEFINE.</p> </li> | |||
</ol> | </ol> | ||
====Deleting records==== | ====Deleting records==== | ||
<p>To DELETE records: </p> | <p> | ||
To DELETE records: </p> | |||
<ol> | <ol> | ||
<li>On the main menu, using the record option, select option 3.</li> | <li>On the main menu, using the record option, select option 3.</li> | ||
Line 184: | Line 229: | ||
<p class="code"> | <p class="code"> | ||
PF2 (DOCument) | PF2 (DOCument) | ||
PF4 (FIElds) | PF4 (FIElds) | ||
PF6 (COMmands) | PF6 (COMmands) | ||
PF9 (SIZe) | PF9 (SIZe) | ||
PF11 (RECdefn) | PF11 (RECdefn) | ||
PF12 (END) </p> | PF12 (END) </p> | ||
<p>Press PF3 (QUIt) to cancel the deletion.</p></li> | <p> | ||
Press PF3 (QUIt) to cancel the deletion.</p></li> | |||
</ol> | </ol> | ||
====Renaming records==== | ====Renaming records==== | ||
<p>To RENAME records: </p> | <p> | ||
To RENAME records: </p> | |||
<ol> | <ol> | ||
<li>On the main menu, using the record option, select option 4. | <li>On the main menu, using the record option, select option 4. | ||
Line 198: | Line 246: | ||
<li>Type over the existing names. Press the PF5 (WIDen) key to enter a name that has more than 20 characters.</li> | <li>Type over the existing names. Press the PF5 (WIDen) key to enter a name that has more than 20 characters.</li> | ||
<li> Press one of the following to stage the records for RENAME: | <li> Press one of the following to stage the records for RENAME: | ||
<p class="code">PF2 (DOCument) | <p class="code">PF2 (DOCument) | ||
PF4 (FIElds) | PF4 (FIElds) | ||
PF6 (COMmands) | PF6 (COMmands) | ||
PF9 (SIZe) | PF9 (SIZe) | ||
PF11 (RECdefn) | PF11 (RECdefn) | ||
PF12 (END) </p> | PF12 (END) </p> | ||
<p>Press PF3 (QUIt) to cancel the operation. </p></li> | <p> | ||
Press PF3 (QUIt) to cancel the operation. </p></li> | |||
</ol> | </ol> | ||
===Command status=== | ===Command status=== | ||
<table> | <table> | ||
Line 212: | Line 261: | ||
<th colspan="8">Command Status</th> | <th colspan="8">Command Status</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th rowspan="2">Command</th> | <th rowspan="2">Command</th> | ||
Line 218: | Line 268: | ||
<th rowspan="2">Existing</th> | <th rowspan="2">Existing</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>***</th> | <th>***</th> | ||
Line 225: | Line 276: | ||
<th>RENAME</th> | <th>RENAME</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DEFINE</td> | <td>DEFINE</td> | ||
Line 235: | Line 287: | ||
<td> </td> | <td> </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>REDEFINE</td> | <td>REDEFINE</td> | ||
Line 245: | Line 298: | ||
<td>X</td> | <td>X</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>DELETE</td> | <td>DELETE</td> | ||
Line 255: | Line 309: | ||
<td>X</td> | <td>X</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>RENAME</td> | <td>RENAME</td> | ||
Line 266: | Line 321: | ||
</tr> | </tr> | ||
</table> | </table> | ||
====Record Name List screen commands==== | ====Record Name List 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 (===>) and press Enter. </p> | |||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 275: | Line 332: | ||
<th>Meaning</th> | <th>Meaning</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF1 </td> | <td>PF1 </td> | ||
Line 280: | Line 338: | ||
<td>Displays HELP text for the Record Name List screen. </td> | <td>Displays HELP text for the Record Name List screen. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF2 </td> | <td>PF2 </td> | ||
Line 285: | Line 344: | ||
<td>Invokes the Dictionary/204 Documentation facility. Place the cursor over the record name that you want to document and press PF2. Changes to the Record Name List screen are saved in the dictionary.</td> | <td>Invokes the Dictionary/204 Documentation facility. Place the cursor over the record name that you want to document and press PF2. Changes to the Record Name List screen are saved in the dictionary.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF3 </td> | <td>PF3 </td> | ||
Line 290: | Line 350: | ||
<td>Exits from the Record Name List screen and returns to the previous screen without making any changes. </td> | <td>Exits from the Record Name List screen and returns to the previous screen without making any changes. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF4 </td> | <td>PF4 </td> | ||
Line 295: | Line 356: | ||
<td>Proceeds to the Field Name List screen. This screen lists the fields in the file. Changes to the Record Name List screen are saved in the dictionary. </td> | <td>Proceeds to the Field Name List screen. This screen lists the fields in the file. Changes to the Record Name List screen are saved in the dictionary. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF5 </td> | <td>PF5 </td> | ||
Line 300: | Line 362: | ||
<td>Proceeds to the Widen screen. This screen allows you to expand the length of the record name on the Record Name List screen and press PF5.</td> | <td>Proceeds to the Widen screen. This screen allows you to expand the length of the record name on the Record Name List screen and press PF5.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF6 </td> | <td>PF6 </td> | ||
Line 305: | Line 368: | ||
<td>Proceeds to the Execute Commands screen. This screen displays the staged commands that were generated for the file and allows you to select the commands you want to execute. Changes to the Record Name List screen are saved in the dictionary.</td> | <td>Proceeds to the Execute Commands screen. This screen displays the staged commands that were generated for the file and allows you to select the commands you want to execute. Changes to the Record Name List screen are saved in the dictionary.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF7 </td> | <td>PF7 </td> | ||
Line 310: | Line 374: | ||
<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 BAC at the prompt (===>), followed by a number, FILEMGMT scrolls backward the specified number of lines. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF8 </td> | <td>PF8 </td> | ||
Line 315: | Line 380: | ||
<td>Scrolls forward one screen. If you type FOR at the prompt (===>), followed by the number, FILEMGMT scrolls forward the specified number of lines. </td> | <td>Scrolls forward one screen. If you type FOR at the prompt (===>), followed by the number, FILEMGMT scrolls forward the specified number of lines. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF9 </td> | <td>PF9 </td> | ||
Line 320: | Line 386: | ||
<td>Proceeds to the File Size Definition screen. This screen displays information about the size of the file. Changes to the Record Name List screen are saved in the dictionary. </td> | <td>Proceeds to the File Size Definition screen. This screen displays information about the size of the file. Changes to the Record Name List screen are saved in the dictionary. </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF11 </td> | <td>PF11 </td> | ||
<td>RECdefn </td> | <td>RECdefn </td> | ||
<td> | <td> | ||
<p>Proceeds to the Record Definition screen. This screen defines the records you just selected from the list. Changes to the Record Name List screen are saved in the dictionary. </p> | <p> | ||
<p>When you return from the Record Definition screen, the Xs you originally entered on the Record Name List screen are removed from the prefix area of records that were processed by pressing PF11 (NEXtrec), or PF12 (END) on the Record Definition screen. An X remains in the prefix area of records that were not processed. </p> | Proceeds to the Record Definition screen. This screen defines the records you just selected from the list. Changes to the Record Name List screen are saved in the dictionary. </p> | ||
<p> | |||
When you return from the Record Definition screen, the Xs you originally entered on the Record Name List screen are removed from the prefix area of records that were processed by pressing PF11 (NEXtrec), or PF12 (END) on the Record Definition screen. An X remains in the prefix area of records that were not processed. </p> | |||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>PF12 </td> | <td>PF12 </td> | ||
Line 335: | Line 405: | ||
</table> | </table> | ||
===Copying records=== | ===Copying records=== | ||
<p>Select the Copy Records function (number 5) from the primary screen. FILEMGMT displays the appropriate Copy screen.</p> | <p> | ||
<p>You use the Copy screen to copy one or more records. The Copy can be to the same file (if just one record is copied) or to a different file. The records can be either existing or staged.</p> | Select the Copy Records function (number 5) from the primary screen. FILEMGMT displays the appropriate Copy screen.</p> | ||
<p>A Copy operation is performed as soon as you leave the Copy screen. The copied records are staged for the DEFINE command.</p> | <p> | ||
<p>The cursor is initially positioned at the Record Name prompt.</p> | You use the Copy screen to copy one or more records. The Copy can be to the same file (if just one record is copied) or to a different file. The records can be either existing or staged.</p> | ||
<p> | |||
A Copy operation is performed as soon as you leave the Copy screen. The copied records are staged for the DEFINE command.</p> | |||
<p> | |||
The cursor is initially positioned at the Record Name prompt.</p> | |||
====Copy screen input==== | ====Copy screen input==== | ||
<p>FILEMGMT displays or prompts you for the following information. </p> | |||
<p> | |||
FILEMGMT displays or prompts you for the following information. </p> | |||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 346: | Line 423: | ||
<th>Response</th> | <th>Response</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Filename </td> | <td>Filename </td> | ||
<td> FILEMGMT displays the name of the file that you entered on the primary screen, and indicates whether the file is Active or Inactive.</td> | <td> FILEMGMT displays the name of the file that you entered on the primary screen, and indicates whether the file is Active or Inactive.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Record Name</td> | <td>Record Name</td> | ||
<td> | <td> | ||
<p>FILEMGMT displays the name of the record you entered on the primary screen. If you did not enter a name on the primary screen, FILEMGMT displays: </p> | <p> | ||
FILEMGMT displays the name of the record you entered on the primary screen. If you did not enter a name on the primary screen, FILEMGMT displays: </p> | |||
<p class="code"><b></b>** All Records ** | <p class="code"><b></b>** All Records ** | ||
</p></td> | </p></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Copy to FILE </td> | <td>Copy to FILE </td> | ||
<td>Type the name of the existing file to which FILEMGMT is to copy the record(s). This file can be the same as the file from which the copy is made, if you are not copying all records.</td> | <td>Type the name of the existing file to which FILEMGMT is to copy the record(s). This file can be the same as the file from which the copy is made, if you are not copying all records.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>New Fieldname or record on the primary screen:</td> | <td>New Fieldname or record on the primary screen:</td> | ||
<td> | <td> | ||
<p>If you entered a name for the New Recordname:</p> | <p> | ||
If you entered a name for the New Recordname:</p> | |||
<ol> | <ol> | ||
<li>Type the name of the new record to which FILEMGMT is to copy the source record. The record name cannot already exist. | <li>Type the name of the new record to which FILEMGMT is to copy the source record. The record name cannot already exist. | ||
<li>Press PF12 (END). FILEMGMT copies the record. </li> | <li>Press PF12 (END). FILEMGMT copies the record. </li> | ||
</ol> | </ol> | ||
<p>If you did not enter a name for the source record on the primary screen, FILEMGMT displays the following message:</p> | <p> | ||
If you did not enter a name for the source record on the primary screen, FILEMGMT displays the following message:</p> | |||
<p class="code"><b></b>** All Records ** | <p class="code"><b></b>** All Records ** | ||
</p> | </p> | ||
<p>Do the following:</p> | <p> | ||
Do the following:</p> | |||
<ol> | <ol> | ||
<li>Do not type a new record name.</li> | <li>Do not type a new record name.</li> | ||
Line 381: | Line 466: | ||
</table> | </table> | ||
<blockquote class="note"><b>Note:</b> A record is not copied to the target file if the file already contains a record with an unqualified name (name without the file name prefix) that is the same as the record name in the source file. FILEMGMT displays a WARNING MESSAGE when it copies all records and finds entries with duplicate unqualified names. The WARNING MESSAGE indicates the number of records that can be copied. </blockquote> | <blockquote class="note"><b>Note:</b> A record is not copied to the target file if the file already contains a record with an unqualified name (name without the file name prefix) that is the same as the record name in the source file. FILEMGMT displays a WARNING MESSAGE when it copies all records and finds entries with duplicate unqualified names. The WARNING MESSAGE indicates the number of records that can be copied. </blockquote> | ||
[[Category:File management]] | [[Category:File management]] | ||
[[Category:FILEMGMT application subsystem]] | [[Category:FILEMGMT application subsystem]] |
Revision as of 01:41, 7 March 2014
Record maintenance
FILEMGMT provides you with an interface for performing all your record maintenance operations. This section describes how to perform the following operations:
- List records in new and existing files.
- Select the records you want to define, redefine, delete, and rename.
- Define and redefine records.
- Stage records in preparation for executing DEFINE, REDEFINE, DELETE, and RENAME commands.
Record Name List screen
To display the Record Name List screen, you can optionally:
- Press the PF4 (RECords) key from the Field Attributes screen. FILEMGMT displays the Record Name List screen in DEFINE mode.
- Select a RECORD Maintenance function from the primary screen. FILEMGMT displays the Record Name List screen in the mode corresponding to the selected function.
You use the Record Name List screen to:
- Specify the names and frequency of the records in a file you are creating. A record name represents a record type.
- View records in an existing file, define additional records, and select records you want to redefine, delete, or rename.
If you are defining new records for a new or existing file, FILEMGMT displays the Record Name List screen in DEFINE mode:
FILEMGMT Record Name List Line 1 of 11 Enter and Select with an 'X' those records you want to DEFINE Filename: PERSONNL | | No. of | Expected | Occurrence | | Recordname | Records | Increase (%) | in File | Cmd --------------------------------------------------------------------------- X PERSONNL | ________ | _______ | 100.0% | *** _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | _ ____________________ | ________ | _______ | | ===> 1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands 7= 8=FORward 9=SIZe 10= 11=RECdefn 12=END |
The above record name list has an entry for a record name with the same name as the file. FILEMGMT creates this entry automatically.
You can perform these operations:
- Rename the entry by typing over the displayed name.
- Type additional record names, one record per line.
- Specify for each record name the number of records and expected increase to the number of records. ("No. of Records" is required input.)
- Proceed to the Record Definition screen to define the contents of the new entries.
If you are redefining, deleting, or renaming records, FILEMGMT displays the Record Name List screen in the mode corresponding to your requested function.
The following screen was invoked by selecting the REDEFINE function:
FILEMGMT Record Name List Line 1 of 2 Select the records you want to REDEFINE with an 'X' Filename: PERSONNL | | No. of | Expected | Occurrence | | Recordname | Records | Increase (%) | in File | Cmd ---------------------------------------------------------------------------- _ EMPLOYEE | _1000___ | _______ | 29.4% | *** _ DEPENDENTS________ | _2000___ | __20___ | 70.6% | ===> 1=HELp 2=DOCument 3=QUIt 4=FIElds 5=WIDen 6=COMmands 7= 8= 9=SIZe 10= 11=RECdefn 12=END |
If you specified a particular record name on the primary screen, FILEMGMT displays an X in the prefix area of this record.
Staged records display the command for which they are staged in the Cmd column. Nonstaged records have a blank in the Cmd column, as in the above screen. Staging is discussed in Staging entries.
You can scroll forward and backward to view additional record names by pressing the PF8 (FORward) and PF7 (BACkward) keys. You can scroll forward 100 lines, which corresponds to FILEMGMT's record number limit.
Record Name List screen input
FILEMGMT displays or prompts you for the following information:
Prompt | Response | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Filename | FILEMGMT displays the name of the file that you entered on the primary screen. | ||||||||||||
Recordname |
If you are creating a new file, FILEMGMT displays a single record name that is the same as the file name. If you are viewing an existing file and did not specify a particular record name on the primary screen, FILEMGMT lists all the records in the file. | ||||||||||||
Cmd |
Displays the status of the record shown on the line:
A record's Cmd status determines whether you can issue a particular command for the record. Command status, below, is a table that summarizes your options (where an |
||||||||||||
No. of Records | Type the number of records of the specified record name to be stored in the file. For a new file, the number represents the initial number of records. Valid values are:
|
||||||||||||
Expected Increase (%) | Type the expected percentage of increase (0-100) in the number of records of the specified record name. The number represents the expected increase during the life of the file. If you do not enter a number in this column, FILEMGMT uses only No. of Records to calculate the size of the file. | ||||||||||||
Occurrence in File | FILEMGMT computes this value from No. of Records and Expected Increase, and it displays the value. |
Record operations
Follow these steps to stage records for a particular function.
Defining records
To DEFINE records:
- Enter the record names in the "Recordname" column.
To enter new record names, type in the names (1-70 characters). Use the standard Model 204 record naming conventions.
To enter new records for an existing file, type the names at the bottom of the list. To enter a record name that is longer than the space provided (20 characters), position the cursor on the record name. Press the PF5 (WIDen) key to advance to the Widen screen.
You can remove new names before you end the session. Type a D in the prefix area to the left of the new name. The deletion removes a line from the display, but does not affect the physical data.
- Type X to the left of the record names to select them.
- Press PF11 (RECdefn).
The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for DEFINE.
Redefining records
To REDEFINE records:
- On the main menu, using the record option, select option 2.
- Type X to the left of the record names to select them.
- Press PF11 (RECdefn).
The Record Definition screen displays the records you selected in the order in which they are listed on the Record Name List screen. The records are staged for REDEFINE.
Deleting records
To DELETE records:
- On the main menu, using the record option, select option 3.
- Type X to the left of the record names to select them.
- Press one of the following to stage the records for DELETE:
PF2 (DOCument) PF4 (FIElds) PF6 (COMmands) PF9 (SIZe) PF11 (RECdefn) PF12 (END)
Press PF3 (QUIt) to cancel the deletion.
Renaming records
To RENAME records:
- On the main menu, using the record option, select option 4.
- Type X to the left of the record names to select them.
- Type over the existing names. Press the PF5 (WIDen) key to enter a name that has more than 20 characters.
- Press one of the following to stage the records for RENAME:
PF2 (DOCument) PF4 (FIElds) PF6 (COMmands) PF9 (SIZe) PF11 (RECdefn) PF12 (END)
Press PF3 (QUIt) to cancel the operation.
Command status
Command Status | |||||||
---|---|---|---|---|---|---|---|
Command | New | Staged as | Existing | ||||
*** | DEFINE | REDEFINE | DELETE | RENAME | |||
DEFINE | X | X | X | ||||
REDEFINE | X | X | X | ||||
DELETE | X | X | |||||
RENAME | X | X | X |
Record Name List screen commands
To issue a command, press a PF key or type a command name at the prompt (===>) and press Enter.
Key | Command | Meaning |
---|---|---|
PF1 | HELp | Displays HELP text for the Record Name List screen. |
PF2 | DOCument | Invokes the Dictionary/204 Documentation facility. Place the cursor over the record name that you want to document and press PF2. Changes to the Record Name List screen are saved in the dictionary. |
PF3 | QUIt | Exits from the Record Name List screen and returns to the previous screen without making any changes. |
PF4 | FIElds | Proceeds to the Field Name List screen. This screen lists the fields in the file. Changes to the Record Name List screen are saved in the dictionary. |
PF5 | WIDen | Proceeds to the Widen screen. This screen allows you to expand the length of the record name on the Record Name List screen and press PF5. |
PF6 | COMmands | Proceeds to the Execute Commands screen. This screen displays the staged commands that were generated for the file and allows you to select the commands you want to execute. Changes to the Record Name List screen are saved in the dictionary. |
PF7 | BACkward | Scrolls backward one screen. If you type BAC at the prompt (===>), followed by a number, FILEMGMT scrolls backward the specified number of lines. |
PF8 | FORward | Scrolls forward one screen. If you type FOR at the prompt (===>), followed by the number, FILEMGMT scrolls forward the specified number of lines. |
PF9 | SIZe | Proceeds to the File Size Definition screen. This screen displays information about the size of the file. Changes to the Record Name List screen are saved in the dictionary. |
PF11 | RECdefn |
Proceeds to the Record Definition screen. This screen defines the records you just selected from the list. Changes to the Record Name List screen are saved in the dictionary. When you return from the Record Definition screen, the Xs you originally entered on the Record Name List screen are removed from the prefix area of records that were processed by pressing PF11 (NEXtrec), or PF12 (END) on the Record Definition screen. An X remains in the prefix area of records that were not processed. |
PF12 | END | Exits from the Record Name List Screen and returns to the primary screen. Changes to the Record Name List screen are saved in the dictionary. |
Copying records
Select the Copy Records function (number 5) from the primary screen. FILEMGMT displays the appropriate Copy screen.
You use the Copy screen to copy one or more records. The Copy can be to the same file (if just one record is copied) or to a different file. The records can be either existing or staged.
A Copy operation is performed as soon as you leave the Copy screen. The copied records are staged for the DEFINE command.
The cursor is initially positioned at the Record Name prompt.
Copy screen input
FILEMGMT displays or prompts you for the following information.
Prompt | Response |
---|---|
Filename | FILEMGMT displays the name of the file that you entered on the primary screen, and indicates whether the file is Active or Inactive. |
Record Name |
FILEMGMT displays the name of the record you entered on the primary screen. If you did not enter a name on the primary screen, FILEMGMT displays: ** All Records ** |
Copy to FILE | Type the name of the existing file to which FILEMGMT is to copy the record(s). This file can be the same as the file from which the copy is made, if you are not copying all records. |
New Fieldname or record on the primary screen: |
If you entered a name for the New Recordname:
If you did not enter a name for the source record on the primary screen, FILEMGMT displays the following message: ** All Records ** Do the following:
|
Note: A record is not copied to the target file if the file already contains a record with an unqualified name (name without the file name prefix) that is the same as the record name in the source file. FILEMGMT displays a WARNING MESSAGE when it copies all records and finds entries with duplicate unqualified names. The WARNING MESSAGE indicates the number of records that can be copied.