mf_user Intermediate
Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Wed Feb 09, 2011 6:41 am Post subject: Allocate Temporary KSDS VSAM file. |
|
|
Hi, I found the below example in ibm website to allocate a temporary ESDS VSAM file.
Code: |
//VSAM1 DD DSN=&CLUSTER,DISP=(NEW,PASS),
// RECORG=ES,SPACE=(1,(10)),AVGREC=M,
// LRECL=256,STORCLAS=TEMP
|
I wonder how to code to allocate a temporary KSDS VSAM file ! Is the below correct?
Code: |
//VSAM1 DD DSN=&KSDSVSAM,DISP=(NEW,PASS),
// RECORG=KS,SPACE=(1,(100)),AVGREC=M,
// LRECL=216,KEYLEN=18
|
Can I load 250,000 records into it using REPRO with IDCAMS and use as temporary file? Would you please give me the full details. Is it compulsory to code the KEYOFF=0 as my key starts from 1st byte.
Please help me.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Wed Feb 09, 2011 11:08 am Post subject: |
|
|
mf_user,
why don't you try and see what happens when you run the job? You would a learn a lot by experimenting. Your second allocation of KSDS looks ok. If a Keylen value is specified, then the Keyoff attribute must also be specified, or 0 value is used. _________________ Kolusu
www.linkedin.com/in/kolusu |
|