Copying files with FILEMGMT: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
Line 77: Line 77:
</table>
</table>
   
   
[[Category:File management]]
[[Category:Model 204 files]]
[[Category:FILEMGMT application subsystem]]
[[Category:FILEMGMT application subsystem]]

Revision as of 22:45, 9 May 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 Copy function (number 5) for File from the FILEMGMT primary screen to display 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.