Copying files with FILEMGMT: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<p>You use the Copy screen to copy an existing <var class="product">Model 204</var> file definition to a new file. You can optionally copy the file's record and field def...")
 
m (more conversion cleanup)
Line 1: Line 1:
<p>You use the Copy screen to copy an existing <var class="product">Model&nbsp;204</var> file definition to a new file. You can optionally copy the file's record and field definitions when you copy the file.</p>
<p>
You use the Copy screen to copy an existing <var class="product">Model&nbsp;204</var> file definition to a new file. You can optionally copy the file's record and field definitions when you copy the file.</p>
 
==Copying files==
==Copying files==
<p>Select the File Management Copy function (number 5) from the primary screen. FILEMGMT displays the Copy screen:</p>
<p>
Select the File Management Copy function (number 5) from the primary screen. FILEMGMT displays the Copy screen:</p>
<p class="caption" style="margin-right:24em">Copy Screen</p>
<table>
<table>
<tr>
<tr>
Line 32: Line 36:
</table>
</table>


<p>A Copy operation is performed as soon as you leave the Copy screen. The copied files are staged for the CREATE command, and record and field definitions are staged for the DEFINE command. You must size the copied file before you can execute the CREATE command. The sizing links the file to a data set name.</p>
<p>
<p>The cursor is initially positioned at the Copy to FILE prompt.</p>
A Copy operation is performed as soon as you leave the Copy screen. The copied files are staged for the <var>CREATE</var> command, and record and field definitions are staged for the <var>DEFINE</var> command. You must size the copied file before you can execute the <var>CREATE</var> command. The sizing links the file to a data set name.</p>
<p>
The cursor is initially positioned at the <b>Copy to FILE</b> prompt.</p>
 
===Copy screen input===
===Copy 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>
<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>Copy to FILE</td>
<th>Copy to FILE</th>
<td>
<td>Type the name of the new file to which FILEMGMT is to copy the existing file. The name must:
<p>Type the name of the new file to which FILEMGMT is to copy the existing file. The name must: </p>
<ul>
<ul>
<li>Have 1-8 characters (letters and/or numbers) and not contain any special characters. </li>
<li>Have 1-8 characters (letters and/or numbers) and not contain any special characters. </li>
<li>Begin with a letter. </li>
<li>Begin with a letter. </li>
<li>Not begin with the characters SYS, CCA, OUT, or TAPE. </li>
<li><i>Not</i> begin with the characters <code>SYS</code>, <code>CCA</code>, <code>OUT</code>, or <code>TAPE</code>. </li>
</ul>
</ul>
</td>
</td></tr>
</tr>
 
<tr>
<tr>
<td>Enter Number </td>
<th nowrap>Enter Number </th>
<td>
<td>Type one of the following numbers to indicate the scope of the copy operation:  
<p>Type one of the following numbers to indicate the scope of the copy operation: </p>
<ol>
<ol>
<li>Records, Fields and Sizes-Copies size parameters as well as record and field data as in Selection #2. </li>
<li>Records, Fields and Sizes &mdash; Copies size parameters as well as record and field data as in Selection #2. </li>
<li>Records and Fields-Copies all field and corresponding record type definitions from the existing file to the new file. </li>
 
<li>Fields Only- Copies field definitions but not the corresponding record type definitions from the existing file to the new file. Creates one record, which is staged for a DEFINE command and has a *REC DEFN REQD status. </li>
<li>Records and Fields &mdash; Copies all field and corresponding record type definitions from the existing file to the new file. </li>
<li>No Records or Fields-Copies neither record type nor field definitions to the new file. You can subsequently use the new file as a procedure file, or add different fields to the file. </li>
 
<li>Fields Only &mdash; Copies field definitions but not the corresponding record type definitions from the existing file to the new file. Creates one record, which is staged for a <var>DEFINE</var> command and has a <code>*REC DEFN REQD</code> status. </li>
 
<li>No Records or Fields &mdash; Copies neither record type nor field definitions to the new file. You can subsequently use the new file as a procedure file, or add different fields to the file. </li>
</ol>
</ol>
<p>If the source file is a Sorted, Hash and/or Record Security file, the sort, hash, and/or record security key fields are copied to the new file. One record is created; the record is staged for the DEFINE command and has a *REC DEFN REQD status. </p>
<p>
</td>
If the source file is a Sorted, Hash and/or Record Security file, the sort, hash, and/or record security key fields are copied to the new file. One record is created: the record is staged for the <var>DEFINE</var> command, and it has a <code>*REC DEFN REQD</code> status. </p>
</tr>
</td></tr>
</table>
</table>
<p>&nbsp;</p>
[[Category:File management]]
[[Category:File management]]
[[Category:FILEMGMT application subsystem]]
[[Category:FILEMGMT application subsystem]]

Revision as of 23:21, 14 March 2014

You use the Copy screen to copy an existing Model 204 file definition to a new file. You can optionally copy the file's record and field definitions when you copy the file.

Copying files

Select the File Management Copy function (number 5) from the primary screen. FILEMGMT displays the Copy screen:

Copy Screen

FILEMGMT Copy Screen Filename: ABC Active Copy to FILE: WITH: _ 1. Records, Fields and Sizes 2. Records and Fields 3. Fields Only 4. No Records or Fields ===> 1=HELp 2= 3=QUIt 4= 5= 6= 7= 8= 9= 10= 11= 12=END

A Copy operation is performed as soon as you leave the Copy screen. The copied files are staged for the CREATE command, and record and field definitions are staged for the DEFINE command. You must size the copied file before you can execute the CREATE command. The sizing links the file to a data set name.

The cursor is initially positioned at the Copy to FILE 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.
Copy to FILE Type the name of the new file to which FILEMGMT is to copy the existing file. The name must:
  • Have 1-8 characters (letters and/or numbers) and not contain any special characters.
  • Begin with a letter.
  • Not begin with the characters SYS, CCA, OUT, or TAPE.
Enter Number Type one of the following numbers to indicate the scope of the copy operation:
  1. Records, Fields and Sizes — Copies size parameters as well as record and field data as in Selection #2.
  2. Records and Fields — Copies all field and corresponding record type definitions from the existing file to the new file.
  3. Fields Only — Copies field definitions but not the corresponding record type definitions from the existing file to the new file. Creates one record, which is staged for a DEFINE command and has a *REC DEFN REQD status.
  4. No Records or Fields — Copies neither record type nor field definitions to the new file. You can subsequently use the new file as a procedure file, or add different fields to the file.

If the source file is a Sorted, Hash and/or Record Security file, the sort, hash, and/or record security key fields are copied to the new file. One record is created: the record is staged for the DEFINE command, and it has a *REC DEFN REQD status.