Copying fields with FILEMGMT: Difference between revisions
m (minor cleanup) |
m (→Copying fields) |
||
Line 6: | Line 6: | ||
==Copying fields== | ==Copying fields== | ||
<p> | <p> | ||
Select the Copy | Select the <b>Copy</b> function (number 5) for <b>Field</b> from the FILEMGMT primary screen. </p> | ||
<p> | <p> | ||
FILEMGMGT displays the Field Copy screen:</p> | FILEMGMGT displays the Field Copy screen:</p> | ||
Line 14: | Line 14: | ||
<td> | <td> | ||
<p class="code"> FILEMGMT Field Copy Screen | <p class="code"> FILEMGMT Field Copy Screen | ||
Line 25: | Line 24: | ||
New Fieldname: ** All Fields ** | New Fieldname: ** All Fields ** | ||
Revision as of 00:02, 4 April 2014
You use the Copy screen to copy one or more fields. The Copy can be to the same file (if just one field is copied) or to a different file. The fields can be either existing or staged.
A Copy operation is performed as soon as you leave the Copy screen. The copied fields are staged for the DEFINE command.
Copying fields
Select the Copy function (number 5) for Field from the FILEMGMT primary screen.
FILEMGMGT displays the Field Copy screen:
FILEMGMT Field Copy Screen Filename: ABC Inactive Fieldname: ** All Fields ** Copy to FILE: New Fieldname: ** All Fields ** ===> 1=HELp 2= 3=QUIt 4= 5= 6= 7= 8= 9= 10= 11= 12=END |
The cursor is initially positioned at the Fieldname 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. |
Field Name | FILEMGMT displays the name of the field that you entered on the primary screen. If you did not enter a name on the primary screen, FILEMGMT displays:
** All Fields ** |
Copy to FILE | Type the name of the existing file to which FILEMGMT is to copy the field(s). This file can be the same as the file from which the copy is made, if you are not copying all fields. |
New Fieldname | If you entered a name for the source field on the primary screen:
If you did not enter a name for the source field on the primary screen, FILEMGMT displays the following message: ** All Fields ** Do the following:
|
Note: A field is not copied to the target file if the file already contains a field with an unqualified name (name without the file name prefix) that is the same as the field name in the source file.
FILEMGMT displays a warning message if it copies all fields and finds entries with duplicate unqualified names. The warning message indicates the number of fields that can be copied.