MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Allocate Temporary KSDS VSAM file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Feb 09, 2011 6:41 am    Post subject: Allocate Temporary KSDS VSAM file. Reply with quote

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.
==
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Wed Feb 09, 2011 11:08 am    Post subject: Reply with quote

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 - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group