FILEDEF
FILEDEF Use the FILEDEF command to establish data definitions for OS ddnames, to
define files to be copied with the MOVEFILE command, or to override
default file definitions made by the assembler and the OS language The format of the FILEDEF command is: r IFIledef I I I ddname
nn
* r I {ddname}
1 nn , *
i I I Terminal PRinter PUnch Reader r [ (option A optionD[) ]]
r (optiona[j j j r '1 I DISK Ifn ft Ifmll ( (0 ptionA optionB[)]] I IFILE gdna!tg I!!II , L L JJ rr ,r " , I DISK fn ft tlfm II {DSN ? QEilQn!: ( PERM] r , , INOCHANGEI L J [RECFM a] I I LL DUMMY TA P( n ] CLEAR r LRECL nnnnn] r , IBLOCK nnnnn I I I !! I I DSN quaIl qua12
.J L JJ ( (option! optionBe; ]]
[(optionA() ]]
( (optionA optionC() ]] [KEYLEN nnn] r , I XTENT nnnnn I IXTENT 2Q I L [LIMCT nnn] [OPTCD a] (DISP r10D] J .- , 17TRACKI 19TRACKI L J [TRTCH a]
(DEN den] r , I ILOWCASEI L J
... }
, I " " " " II " 11 " " " , , I , , J
i IBLKSIZE nnnnni I L .J [MEr1BER membername] [CONCAT] r , I I I I IDSORG I I L {
PS}'
PO I DA I .J
is the name by which the file is referred to in your program. The ddname may be from one to eight· alphameric
characters, but the first character must be alphabetic or
national. If a number nn is specified, it is translated to a FORTRAN data definition name of FTnnF001. An asterisk (*) may
be specified with the CLEAR operand to indicate that all file
definitions not entered with the PERM option should be
cleared.
Section 2. CMS Commands 89
FILEDEF is your terminal (terminal 1/0 must not be blocked). PRINTER is the spooled printer. PUNCH is the spooled punch. is the spooled card reader (card reader 1/0 must not be
blocked) DISK specifies that the virtual 1/0 device is a disk. shown in
the format, you can choose one of two forms for specifying the DISK operand. Both forms are described in "Using the FILEDEF DISK Operand." DUMMY indicates that no real 1/0 takes place for a data set. n ] is a magnetic tape. The symbolic number of the tape drive, n,
can be 1, 2, 3, or 4, representing virtual units 181, 182,
183, and 184, respectively. If n is not specified, FILEDEF
uses the existing TAPn device for the specified ddname. TAPn defaults to if there is no existing definition for the
specified ddname, or if the existing device was not TAPn. removes any existing definition for the specified ddname.
Clearing a ddname before defining it ensures that a file
definition does not exist and that any options previously
defined with the ddname no longer have effect.
r Whenever an invalid option is specified for a particular
device type, an error message is issued. Figure 8 shows valid
options for each device type. I , options PUNCH, DISK , PRINTER , TERMINAL TAPn BLOC.K, BLKSIZE t X X CHANGE, NOCHANGE t X X CONCAT DEN 1 DISP MOD X KEYLEN LIMCT LOWCASE, UPCASE 1 LRECL X X X MEMBER OPTCD PERM X X X RECFM X X 1 TRTCH X3 tTENT 7'!'RACK, X lNo options may be necessary but all disk options are accepted.
2This option is only for BDAM files.
3This option is for 7-track tapes only. DUKMYl 1 1 1 X X 12 12 1 1 12 X X 12 L- J
Each Device Type of the Figure q. Valid File Characteristics for
FILEDEF Command 90 IBM VM/370 CMS Command and Macro Reference
Previous Page Next Page