Monday 24 August 2015

How to create a temporary VSAM file

We know how to create a normal temporary sequential file and how to use it.

Let us find out on how we can create temporary VSAM file.

//TEMPFILE  DD  DSN=&&TEMPFILE,DISP=(NEW,PASS,DELETE),
//              UNIT=SYSDA,
//              SPACE=(80,(5,2)),
//              AVGREC=U/K/M
//              RECORG=KS/ES/RR/LS
//              KEYLEN=8,KEYOFF=0


First parameter of SPACE is always numeric and assumes it as a BLKSIZE

AVGREC will have either Units, Kilos or Megabytes

RECORG (Record Organization) such as KSDS,ESDS, RRDS and LDS

KEYLEN specifies the key length

KEYOFF specifies the offset

No comments:

Post a Comment