IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Load data to the VSAM file from sequential(with duplicates)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Fri Jul 23, 2010 10:45 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 23, 2010 11:01 am
Reply with quote

Sort the file removing the dups.
Back to top
View user's profile Send private message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Fri Jul 23, 2010 11:30 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 23, 2010 11:35 am
Reply with quote

The output from sort can be written directly into the KSDS.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top