Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us