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

Solutions to Module 5 Working With Files

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Challenge Answers

 Is Your Answer...?If Not, Start With...
1.File name plus group name.Lesson 1
2.File name plus group and account names.Lesson 1
3.LISTFILE A@Lesson 1
4.RENAMELesson 2
5.Files take up valuable disk space on the computer; therefore, seldom-used files should be stored on a magnetic tape.Lesson 3
6.PURGELesson 4
7.PRINTLesson 5
8.COPYLesson 6
9.RELEASE; SECURELesson 6
10.Your system manager.Lesson 6

Lesson 1: Displaying Qualified File Name

    1. FILE1

    2. file1.payroll.acct

    3. FILE1.PUB

    4. file1.pub.sys

  1. LISTFILE

  2. LISTFILE A@

  3. LISTFILE @S

  4. LISTFILE @.@,6

  5. LISTFILE s@r@t.pub.sys

Lesson 2: Renaming Files

  1. Get into the editor. Keep one file as OAK and the other as MAPLE.

  2. You get the following error message;

       RENAME FAILED DUE TO FILE SYSTEM ERROR, NOT RENAMED (CIERR 373)
    
  3. RENAME oak,acorn

    LISTFILE acorn or LISTFILE

Lesson 3: Storing Seldom-Used Files

  1. Files take up disk space on the system. If your file needs to be archived and it is a file that is relatively inactive, you should have the file stored to a magnetic tape as a good housekeeping practice.

Lesson 4: Deleting Files

  1. PURGE maple

    LISTFILE maple

  2. b

Lesson 5: Displaying File Contents

  1. PRINT acorn

  2. PRINT ACORN;START=3;END=7

  3. You could get into the editor and text in the ACORN file then perform a LIST ALL, OFFLINE.

    NOTE: Advanced Users: the PRINT command has parameters that allow you to direct your output to a printer. This is covered in the Advanced Skills course.

Lesson 6: Copying Files

    1. COPY FROM=ACORN;TO=PINE

      Get into the editor and change the file PINE so that it now looks different. Keep PINE.

    2.    COPY PINE,ACORN
      
         PURGE OLD? no
      
         NO COPY WAS DONE (CIERR 9113)
      
    3.    COPY PINE,ACORN
      
         PURGE OLD? yes
      
         PRINT ACORN
      

      The PINE file writes over the "original" ACORN file. Printing the contents of the "new" ACORN file reveals the contents of the "old" PINE file.

  1. RELEASE

  2. SECURE

  3. d

  4. The file is copied to your current group.

  5. Your system manager.

Feedback to webmaster