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 

IDCAMS REPRO Output file DCB

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vijay
Beginner


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Sat Feb 28, 2004 10:46 am    Post subject: IDCAMS REPRO Output file DCB Reply with quote

hi,
I want to copy a vsam file to flat file,make some changes in the flat file and copy the records back to vsam.What should be the dcb properties of the file -- recln and rectype.I know rectype and length depend on maxsize and avgsize of record in vsam file.But not sure exactly what it should be ?

vijay
Back to top
View user's profile Send private message
[bond]
Beginner


Joined: 31 Dec 2002
Posts: 28
Topics: 6

PostPosted: Sun Feb 29, 2004 10:46 pm    Post subject: Reply with quote

is it an esds/ksds/rrds ? what sort of changes are you doing ? why not do directly on the vsam file instead of copying to a flat file and then copying it back to VSAM ? are you playing around with the key if it is ksds ?
Back to top
View user's profile Send private message
vijay
Beginner


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Mon Mar 01, 2004 9:26 am    Post subject: Reply with quote

All files are KSDS.Yes,I'm deleting the old record and creating new records with a different key with all other record contents being the same.
I use EZT to delete the record and copy the record to a flat file with the key changed and finally I repro back the flat file.I can use VSAM also.Just out of curiosity I'm asking -- how to calculate the DCB of the flat file when we repro from vsam to flat file for any kind of vsam in general ?


Thanks,
Vijay
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Mar 01, 2004 2:12 pm    Post subject: Reply with quote

vijay,

Use a sort utility to copy the VSAM file to a flat file. Sort products automatically calcualate the LRECL, BLKSIZE from the input file unless you are modifying the records using inrec or outrec.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Tue Mar 02, 2004 8:38 am    Post subject: Reply with quote

If you want to do it manually, the rules I use are quite simple:
IF the VSAM file MAX and AVG record lengths are the same, copy to a fixed blocked sequential file with the same record length as the MAX and AVG values.
If the VSAM file AVG reclen is less than the MAX, copy to a variable blocked sequential file with record length = MAX vsam reclen + 4
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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