View previous topic :: View next topic
|
Author |
Message |
gileshpg
New User
Joined: 22 May 2008 Posts: 27 Location: Bangaluru
|
|
|
|
Hi,
I am having a sequential file of 100 bytes, need to load to the vsam file using repro.
The first 5 bytes of the VSAM is the key field.
The sequential file will have duplicates, so using repro it is showing abend.(The VSAM file will be empty)
I used
REPRO INFILE(FILEIN) OUTFILE(FILEOUT) -
REPLACE
The input file is like
11111 abcde..........
11111 gfsdjhs...........
22222 gffffffffffd...............
33333 gdffffffhdh..............
55555 hhhhhddddd................
Output I need
11111 gfsdjhs...........
22222 gffffffffffd...............
33333 gdffffffhdh..............
55555 hhhhhddddd................
Can anyone help me on this. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Sort the file removing the dups. |
|
Back to top |
|
|
gileshpg
New User
Joined: 22 May 2008 Posts: 27 Location: Bangaluru
|
|
|
|
is there any other way that we can do this in one step without using sort??? my input have millions of data..... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The output from sort can be written directly into the KSDS. |
|
Back to top |
|
|
|