Copying files with FILEMGMT
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:
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:
|
Enter Number | Type one of the following numbers to indicate the scope of the copy operation:
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 |