Accessing Files Programmer's Guide (32650-90885)

190 Chapter14
Getting File Information
Displaying General File Information
Specifying an alternate output file
If you do not indicate otherwise, LISTFILE sends its output to $STDLIST. You can
optionally specify a different output file to which the file descriptions are written.
LISTFILE examples
1. List all files in your logon account and group with file names that contain the characters
"INFO":
LISTFILE @INFO@
INFOABST INFOUTLN INFOPREF PSMGINFO WINFOUTQ XLINFO
2. Show the file characteristics of all files with names beginning with "X" in a specified
account and group:
LISTFILE X@.INTRIN.LOZAR
ACCOUNT= LOZAR GROUP= INTRIN
FILENAME CODE ------------LOGICAL RECORD--- ----SPACE----
SIZE TYP EOF LIMIT R/B SECTORS -X MX
XLHPCICO 80B FA 39 39 3 8 1 1
XLHPCIDE 80B FA 47 47 3 8 1 1
XLHPCIGE 80B FA 27 27 3 8 1 1
XLHPCIPU 80B FA 44 44 3 8 1 1
3. Display the label information for a specified file:
LISTFILE ODDITY,3
********************
FILE: ODDITY.INFO.LOZAR
FILE CODE : 1030 FOPTIONS: BINARY,FIXED,NOCCTL,STD
BLK FACTOR: 1 CREATOR :
REC SIZE: 256(BYTES) LOCKWORD:
BLK SIZE: 256(BYTES) SECURITY--READ : ANY
EXT SIZE: 0(SECT) WRITE : ANY
NUM REC: 7816 APPEND : ANY
NUM SEC: 0 LOCK : ANY
8 ACCESS Shows all accessors for the file
9 LOCKS Shows all format 8 data plus more details about the proecsses
accessing the file, including locking data.
10 SUMMARY
WIDE
The same basic information as in the SUMMARY option, but in a
wider format to allow for larger values.
11 DISCWIDE The same basic information as in the DISC option, but in a wider
format to allow for larger values.
Table 14-1. Format Selection
Option Name Displayed Information