| United States-English |
|
|
|
![]() |
Using HP 3000 MPE/iX:\Advanced Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 5 Module 4: File Transfer and StorageLesson 1 Using FCOPY |
|
Lesson 1 presents the following information on FCOPY:
You have probably used the COPY command for copying files within an account. In this lesson you'll be learning about the FCOPY utility, which can perform additional copying functions within an account and give you more flexibility in copying files to other locations. This utility can be treated as a command by entering all of its parameters in one command line. This is the way you will be treating it throughout this module. Be sure that you are logged into the CLASS group of your account. FCOPY is used to copy single files from one location to another. Usually, this means copying files from one disk location to another; however, FCOPY can also be used to copy files from or to devices other than disk. However, for now concentrate on copying files within your account. When using FCOPY as a command, rather than as a utility, the syntax for the FCOPY command is similar to that of the COPY command:
Notice the locations of the equal signs (=) following the words FROM and TO. Many users make mistakes here. The FROM information tells your system the name of the source file and its location. The TO information tells the system the name of the new or destination file and its location. Adding the NEW option at the end of the FCOPY command assures you that the command will not copy the file over a previously existing file with the same name.
Adding the NO option at the end of the COPY command ensures the same thing as the FCOPY NEW option.
Also note that semicolons are entered at the end of both the FROM and the TO information to separate the two parameters from each other. FCOPY and COPY also differ in the way they copy files. The COPY command purges the file, then creates a new file with the characteristics of the source file. FCOPY copies into the file and tailors the source to destination file characteristics. This is why you cannot use the COPY command to alter the record size of a file. However, FCOPY allows this by truncating the records and fitting them into the destination file. Like the COPY command, the FCOPY command can be used to copy files within an account and between accounts. Suppose you want to duplicate the MYJOB1 file currently in the CLASS group and call the duplicate copy MYJOB1A. The command syntax looks like this:
Enter that command now on your terminal. Unlike COPY, which displays another prompt following a successful copy, FCOPY provides detailed information regarding the copy process at its successful conclusion. Did you get the following information on your display noting that the copy was completed successfully? (If not read the following section.)
If you got a syntax error, check your FCOPY command again to be sure that you have entered the command correctly.
If the syntax error message appeared, check the equal sign (=) after the FROM and TO, and the semicolon (;) before the TO.
If this NEW option error message appears change the new name for your file to MYJOB3 in your FCOPY command. As an account manager you can copy files across groups in your account even though you are not the creator of the file or are not in the destination group. For example, as the account manager you may want to keep a copy of a file (PFILE) in each of your account groups. The master copy of this file would remain in the PUB group. Go ahead and copy this file (PFILE) from the PUB group to each of the groups in your account.
There are times when you will need to copy files between different accounts. The FCOPY command will let you do this with the following provisions. This exercise will walk you through the procedure to copy a file from one account to another.
Go through the same procedure again for more practice. Copy the same file to your account; however, this time rename the file MYJOBX.
********** End of Exercise 4-1 **********
Check this section of the lesson if you had problems; otherwise, congratulations on your file transfer! The most frequent error message is
To correct this, ask your partner who has the source file to again release the MYJOB1 file before repeating steps 3 through 6. If you get a syntax error, examine your file command line again to make sure that it is written correctly. There will be times when you want to append several files together. FCOPY can do this by creating a new file and then appending additional files to this file. In this exercise you will combine JOB1, JOB2, JOB3, and JOB0 in a single JOBX file.
********** End of Exercise 4-2 ********** To use the FCOPY command to copy files from disk to other devices (such as tape or peripherals), you must do the following:
What if you want to copy files from a tape to a line printer? The FCOPY command can do this kind of copying as well. No file release is required. However, you must do the following:
********** End of Exercise 4-3 ********** |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||