View previous topic :: View next topic
|
Author |
Message |
amit_tater
New User
Joined: 22 Dec 2006 Posts: 9 Location: Indore
|
|
|
|
What is the efficient way to copy data from a sequential file to VSAM file?
I need to copy some 2000 records from a sequential file (which contains around 300,000 records) to a VSAM file. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
first you can sort and extract only the 2000 records, and then do the IDCAMS REPRO |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
There's no need to use sort and REPRO (two passes). You can use DFSORT to sort/extract the records and write them directly to a VSAM output file (one pass). |
|
Back to top |
|
|
|