Whenever you run the Database Services Utility under CMS, first identify the files to CMS with the FILEDEF command.
| Note: | Use the SQLDBSU EXEC, which generates standard FILEDEF statements, to define the control and message files. Create a FILEDEF statement for all additional input and output files. |
The FILEDEF command in CMS performs the same functions as the data definition (DD) record in OS job control language (JCL). When you enter a FILEDEF command, specify:
The format of the FILEDEF command is:
Format:
>>-FIledef--ddname----+-Terminal--------+----------------------->
+-PRinter---------+
+-Reader----------+
+-DISK--fn_ft_fm--+
'-TAPn------------'
>-----+--------------------+-----------------------------------><
'-(--Options--+---+--'
'-)-'
|
The following diagram illustrates the FILEDEF options available when the
device is a workstation or a tape drive:
Format:
>>-(------------------------------------------------------------>
>----+------+--+----------+---+-----------------+---+--------------+>
'-PERM-' +-CHANGE---+ '-RECFM--+-----+--' '-LRECL--nnnn--'
'-NOCHANGE-' +-F---+
+-FB--+
+-V---+
+-VB--+
+-FBS-+
'-VBS-'
>----BLOCK--nnnn----+--------------+---+-------------+--+---+--><
| (1) | | (2) | '-)-'
+-UPCASE-------+ +-7TRACK------+
| (1) | | (2) |
'-LOWCASE------' '-9TRACK------'
Notes: |
The following diagram illustrates the FILEDEF options available when the
device specified is DISK:
Format:
>>-(--+------+----+----------+---+-----------------+------------>
'-PERM-' +-CHANGE---+ '-RECFM--+-F---+--'
'-NOCHANGE-' +-FB--+
+-V---+
+-VB--+
+-FBS-+
'-VBS-'
>-----+--------------+---+--------------+---+--------------+---->
'-LRECL--nnnn--' +-*------------+ +-XTENT50------+
'-BLOCK--nnnn--' '-XTENT--nnnn--'
>----+----------+----+------------------+--+--------+----------->
'-DISP MOD-' '-MEMBER--mbrname--' '-CONCAT-'
>-----+----------------+--+---+--------------------------------><
'-DSORG--+-PS-+--' '-)-'
+-PO-+
'-DA-'
|
Table 19. FILEDEF Options and Parameters
| OPTION NAME | DISK | READER/PRINTER | TAPn | TERMINAL |
|---|---|---|---|---|
| BLOCK, BLOCKSIZE | X | X | X | X |
| CHANGE, NOCHANGE | X | X | X | X |
| CONCAT | X | |||
| DEN | X | |||
| DISP MOD | X | X | ||
| DSORG | X | |||
| LOWERCASE/ UPCASE | X | |||
| LRECL | X | X | X | X |
| MEMBER | X | |||
| PERM | X | X | X | X |
| RECFM | X | X | X | X |
| 7TRACK/9TRACK | X |
Some guidelines for entering FILEDEF specifications are given below.