Chapter 2 Solutions to Module 2 File Management
Lesson 1 Introduction to Files
Q 2-1
-------------------------------------------------------------------------------------------
| |
| Command Information |
| |
-------------------------------------------------------------------------------------------
| |
| LISTFILE,1 Logical record information |
| |
| LISTFILE,2 File space information |
| |
| LISTFILE,3 File structure, creation, and modification information |
| |
-------------------------------------------------------------------------------------------
Q 2-2 LISTFILE @.@,4
Q 2-3 System-defined file names begin with $.
Q 2-4 Formal files and permanent files both have from one
to eight characters, begin with an alpha character
and cannot include noncharacters ($%``&''*., etc).
Exercise 2-1: Lesson 2 Review
1.
-------------------------------------------------------------------------------------------
| |
| File Characteristics Permanent Formal Temporary |
| |
-------------------------------------------------------------------------------------------
| |
| a. File names are 1-8 characters X X X |
| long. |
| |
| b. File names are aliases for X |
| devices. |
| |
| c. File names may begin with a $. X |
| |
| d. Files may be listed with X |
| LISTFILE. |
| |
| e. Files may be listed with X |
| LISTEQ. |
| |
| f. File names may begin with an X X |
| alpha character. |
| |
| g. Files are listed with LISTFILE X |
| ;TEMP. |
| |
-------------------------------------------------------------------------------------------
2a. LISTFILE @.@,2
2b. LISTFILE MYJOB1,-1
2c. LISTFILE MYJOB1,1
2d. LISTFILE,3
2e. LISTFILE
2f. LISTFILE,4
2g. LISTFILE @.@,6
2h. LISTFILE @.PUB,3;PASS
2i. LISTFILE,5 and LISTFILE,7
*******End of Exercise 2-1 ************