Copying fields with FILEMGMT: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<p>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.</p>
<p>
<p>A Copy operation is performed as soon as you leave the Copy screen. The copied fields are staged for the DEFINE command.</p>
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.</p>
<p>
A Copy operation is performed as soon as you leave the Copy screen. The copied fields are staged for the <var>DEFINE</var> command.</p>
 
==Copying fields==
==Copying fields==
<p>Select the Copy Fields function (number 5) from the primary screen. </p>
<p>
<p>FILEMGMGT displays the Field Copy screen:</p>
Select the <b>Copy</b> function (number 5) for <b>Field</b> from the FILEMGMT primary screen. </p>
<p>
FILEMGMGT displays the Field Copy screen:</p>
<p class="caption" style="margin-right:24em">Field Copy screen</p>
<table>
<table>
<tr>
<tr>
<td>
<td>
<p class="code"> FILEMGMT                Field Copy Screen
<p class="code"> FILEMGMT                Field Copy Screen




Line 20: Line 24:


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




Line 33: Line 33:
</tr>
</tr>
</table>
</table>
<p>&nbsp;</p>


<p>The cursor is initially positioned at the Field Name prompt.</p>
<p>
====Copy screen input====
The cursor is initially positioned at the <b>Fieldname</b> prompt.</p>
<p>FILEMGMT displays or prompts you for the following information. </p>
 
<table>
===Copy screen input===
<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>
<td>Filename </td>
<th>Filename </th>
<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>Field Name</td>
<th>Field Name</th>
<td>
<td>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:  
<p>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: </p>
<p class="code"><b></b>** All Fields **     
<p class="code"><b></b>** All Fields **     
</p></td>
</p></td>
</tr>
</tr>
<tr>
<tr>
<td>Copy to FILE </td>
<th>Copy to FILE </th>
<td>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.</td>
<td>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.</td>
</tr>
</tr>
<tr>
<tr>
<td>New Fieldname on the primary screen:</td>
<th nowrap>New Fieldname</th>
<td>
<td>If you entered a name for the source field on the primary screen:
<p>If you entered a name for the source field:</p>
<ol>
<ol>
<li>Type the name of the new field to which FILEMGMT is to copy the source field. The field name cannot already exist.</li>
<li>Specify the name of the new field to which FILEMGMT is to copy the source field. The field name cannot already exist.</li>
 
<li>Press PF12 (END). FILEMGMT copies the field. </li>
<li>Press PF12 (END). FILEMGMT copies the field. </li>
</ol>
</ol>
<p>If you did not enter a name for the source field on the primary screen, FILEMGMT displays the following message:</p>
<p>
If you did not enter a name for the source field on the primary screen, FILEMGMT displays the following message:</p>
<p class="code"><b></b>** All Fields **  
<p class="code"><b></b>** All Fields **  
</p>
</p>
<p>Do the following:</p>
<p>Do the following:</p>
<ol>
<ol>
<li>Do not type a new field name.</li>
<li>Do not specify a new field name.</li>
<li>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.</li>
<li>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 <b>Copy to FILE</b> name.</li>
</ol>
</ol>
</td>
</td></tr>
</tr>
</table>
</table>
<b>Note</b>
<blockquote class="note">
<p>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 when it copies all fields and finds entries with duplicate unqualified names. The WARNING MESSAGE indicates the number of fields that can be copied. </p>
<p><b>Note:</b>
<p>&nbsp;</p>
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. </p>
[[Category:File management]]
<p>
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. </p>
</blockquote>
 
 
[[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.