Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
j_rymbei,
I don't think there is any utility that would convert a flat file to KSDS, instead create a KSDS vsam file and then REPRO the flat file data to the created KSDS file. This would surely work
KEYOFF specifies the offset of the key field, while KEYLEN specifies the length of the key field. These two statements take the place of the KEYS parameter in the IDCAMS DEFINE statement. (Don't forget that the key offset starts at position 0)
RECORG is used to specify the type of VSAM dataset, for example RECORG=KS would specify a Key Sequenced Data Set (KSDS). Valid values are KS (for Key sequenced datasets), ES (for Entry Sequenced Datasets), RR (for relative record datasets) and LS (for VSAM linear space datasets).
If you do not specify a volume (UNIT and VOL parameters) where the dataset is to be kept then SMS will automatically select a volume.
For all the other parameters required on an IDCAMS DEFINE, default values will be assumed, unless you specify a DATACLAS parameter which can be used to point to a data class containing default values for RETPD, volume count, IMBED, REPLICATE, CISIZE, FREESPACE and SHAREOPTIONS. If you specify a DATACLAS and, say, a UNIT and VOL parameters then the UNIT/VOL will override the defaults in the DATACLAS.
You also specify the space to be allocated for the VSAM cluster using the SPACE parameter as you would for any non-VSAM file. If you code RLSE then this will be ignored. CONTIG or ROUND will cause a JCL error.
On the DSN parameter you can only code the name of the dataset, you cannot specify the names of any data or index components. Any data or index components will be created as the dataset name plus either .DATA or .INDEX
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
Bill, page 38 shows:
Quote:
Direct Allocation Using JCL
You can directly allocate VSAM data sets through JCL.
The following example allocates a new data set and, with DATACLAS, uses the
allocation attributes predetermined by the storage administrator through the ACS
routines.
//DD1 DD DSNAME=EXAMPLE1,DATACLAS=DCLAS01,
// DISP=(NEW,KEEP)
See OS/390 MVS JCL User?s Guide and OS/390 MVS JCL Reference for
information about JCL keywords.
10 OS/390 V2R10.0 DFSMS Access Method Services for Catalogs