2.4.1.15.4 Options

-t <organization>
Type is the organization type of the created file. The possible values are:
SEQ
for a sequential file.
LSEQ
for a line sequential file.
IDX
for an indexed file
REL
for a relative file

Note:

The options -r and -k are mandatory for an indexed file.
-r Length
Indicates the record length of the file. This option is mandatory for indexed files and SEQ files.
-k Position+Length
The primary key (mandatory for indexed files)
Position
The first character of the key in relation to the beginning of the record.
Length
The length of the primary key.
-K Position+Length[d]
(K upper case character)
The secondary key indicating that the file contains a secondary key.
Position
The first character of the key in relation to the beginning of the record.
Length
The length of the secondary key.
d
Optional parameter.
Permit duplicates of secondary key.
-S <model file>
(S upper case character)
Names the dsname of a file.
When the disposition mode is NEW, this file is a “model” for the new file to be created.
The characteristics of the new file depends on the characteristics of the “model” file and other parameter given by the m_FileAssign function.

Note:

Model files of type "GDG|RDB|PDS" are NOT supported.
-v volume
Indicates the file volume. The file is cataloged automatically. This option only works when file catalog is enabled in Batch Runtime.
-e Ydate|Ddays (Y upper case character) (D upper case character)
Indicates the retention period for the data set.
date
Specifies the expiration date for the data set. The date is specified in the form [yy]yyddd.
yyddd
The yy is a two-digit year number (through 99) and the ddd is a three-digit day number from 000 through 365 for non-leap year dates. For example, code February 2, 1995 as 95033
yyyyddd
The yyyy is a four-digit year(through 2155),and ddd is the three-digit day of the year.

Note:

Expiration dates of [19]99365 and [19]99366 are considered “never-scratch” dates.
days
Specifies the retention period for the data set. It is specified in the form dddd, where dddd must be set in the range of 0-9999.The system adds dddd to the current date to produce an expiration date.
dsname
dsname of the file to create.