HPlogo Using HP 3000 MPE/iX:\Advanced Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 8 Solutions

Solutions to Module 4: File Transfer

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Check Your Answers

 Is Your Answer ... ?If Not, Start With
1.FCOPY FROM=MYJOB1.PUB ;TO=MYJOB1.CLASS;NEWLesson 1
2.FCOPY FROM=STATS.PUB.ADVUSER ;TO=STATS.CLASS;NEWLesson 1
3.FILE FILEA;REC=-80,,F,ASCII ;ACC=APPEND ;DISC=10000FCOPY FROM=FILE1;TO=*FILEA;NEWFCOPY FROM=FILE2;TO=*FILEAFCOPY FROM=FILE3;TO=*FILEALesson 1
4.FILE T;DEV=TAPEFCOPY FROM=MYJOB1;TO=*TLesson 1
5STORE @.PUB.ACCTA;*T;TRANSPORTLesson 2
6.FILE T;DEV=TAPE;DEN=1600Lesson 2
7.
  1. PROGRESS

  2. SHOW

  3. PURGE

Lesson 2
8.RESTORE *T;@.PUB.ACCTALesson 2

Lesson 1 Using FCOPY

Q 4-1

When you copy files between account groups, you need to include source and destination group information.

Q 4-2

When copying a file to another account, you need to include the file's current group and account location.

   FCOPY FROM=MYJOB1.PUB.ACCTx

   ;TO=MYJOB1.group;NEW

Exercise 4-2 Appending One File to Another

4.

JOBX consists of 16 records.

6.

JOBX consists of 27 records.

7.

FCOPY FROM=JOB3;TO=*F1

8.

JOBX consists of 38 records.

9.

FCOPY FROM=JOB0;TO=*F1

10.

JOBX now consists of 49 records.

11.

PURGE JOBX

********** End of Exercise 4-2 *******

Q 4-3

FILE OUT;DEV=LP

FCOPY FROM=MYJOB2.PUB.ACCTx;TO=*OUT

Q 4-4

You need to add an asterisk before the T (tape file name) in the FCOPY command in order to copy the file to tape.

FCOPY FROM=MYJOB1.PUB.ACCTx;TO=*T

Exercise 4-3: Lesson 1 Review

1.

 TasksWithin GroupWithin AccountAcct to AcctDevice to Device
a.Release file before copying.  X 
b.Define the device file(s).   X
c.Fully qualify the file names (name.group.account).  X 
d.Backreference device file names with asterisks.   X
e.Require only the FROM file name and the TO file name.X   
f.Be in the destination account when you issue the FCOPY command.  X 
g.Secure the file after copying.  X 
h.Note the group names for the source and destination file locations. X  

2.

FCOPY FROM=DEPTCEN.CLASS.FINANCE ;TO=DEPTCEN.PROJECT;NEW

3.

FILE T;DEV=TAPE;REC=-80,,F,ASCII FCOPY FROM=MYFILE1.CLASS.ADVUSER;TO=*T

4.

The correct sequence follows:

StepAction
b.Release the file.
d.Log on to the destination account.
c.Enter the FCOPY command.
e.Use LISTFILE to check the copy transfer.
a.Log on to the source account and secure the original file.

********** End of Exercise 4-3 ***********

Lesson 2 Storing and Restoring Files from Tape

Q 4-5

To store all the files in your account to tape you would enter:

STORE @.@;*T

Q 4-6

To store all files on a tape to be restored to an MPE V system, you would enter:

STORE M@.@;*T;TRANSPORT

Q 4-7

RESTORE *T;@.PROJECT.ACCTx

Exercise 4-4: Lesson 2 Review

STORE and RESTORE problems:

  1. The tape name needs to be backreferenced in the STORE command:

    STORE @.@.ADVUSER;*T

  2. Check the tape drive densities and system types. The problem may result from different tape densities or different systems or both. If either of these conditions exist, you need to go through the Store procedure again, adding the DEN= and/or TRANSPORT parameters as necessary.

  3. To store the files:

       FILE T;DEV=TAPE;DEN=1600
    
       STORE @.PUB.ADVUSER;*T;TRANSPORT
    

    To restore the files:

       FILE T;DEV=TAPE
    
       RESTORE *T;@.PUB.ADVUSER
    
  4. This is one of the potential problems resulting from using the PURGE parameter. Use it cautiously. In the event of tape problems, check with system management for help with the tape. Also, check with them for the availability of system backup tapes made recently in order to recover copies of the files.

*********** End of Exercise 4-4 *********

Feedback to webmaster