Copying fields with FILEMGMT: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (minor cleanup)
(Automatically generated page update)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
==Copying fields==
==Copying fields==
<p>
<p>
Select the Copy Fields function (number 5) from the primary screen. </p>
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 26: Line 24:


  New Fieldname:  ** All Fields **
  New Fieldname:  ** All Fields **




Line 41: Line 35:


<p>
<p>
The cursor is initially positioned at the <b>Field Name</b> prompt.</p>
The cursor is initially positioned at the <b>Fieldname</b> prompt.</p>


===Copy screen input===
===Copy screen input===
Line 95: Line 89:
</blockquote>
</blockquote>


[[Category:File management]]
 
[[Category:FILEMGMT application subsystem]]
[[Category:FILEMGMT application subsystem]]

Latest revision as of 04:20, 10 May 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:

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:
  1. Specify the name of the new field to which FILEMGMT is to copy the source field. The field name cannot already exist.
  2. Press PF12 (END). FILEMGMT copies the field.

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:

  1. Do not specify a new field name.
  2. Press PF12 (END). FILEMGMT copies all fields from one file to another. The copied fields have the same names as the original fields but are prefixed (qualified) by the Copy to FILE name.

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.