 |
» |
|
|
 |
Challenge Answers |  |
Lesson 1: Displaying Qualified File Name |  |
FILE1 file1.payroll.acct FILE1.PUB file1.pub.sys
LISTFILE LISTFILE A@ LISTFILE @S LISTFILE @.@,6 LISTFILE s@r@t.pub.sys
Lesson 2: Renaming Files |  |
Get into the editor. Keep one file as OAK and the other as MAPLE. You get the following error message;
RENAME FAILED DUE TO FILE SYSTEM ERROR, NOT RENAMED (CIERR 373)
|
RENAME oak,acorn LISTFILE acorn or LISTFILE
Lesson 3: Storing Seldom-Used Files |  |
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 |  |
PURGE maple LISTFILE maple b
Lesson 5: Displaying File Contents |  |
Lesson 6: Copying Files |  |
COPY FROM=ACORN;TO=PINE Get into the editor and change the file PINE so that it now looks different. Keep PINE.
COPY PINE,ACORN
PURGE OLD? no
NO COPY WAS DONE (CIERR 9113)
|
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.
RELEASE SECURE d The file is copied to your current group. Your system manager.
|