Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Load data to the VSAM file from sequential(with duplicates)
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 23, 2010 11:01 am    Post subject:
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    Post subject: Reply to: Load data to the VSAM file from sequential(with du
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 23, 2010 11:35 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us