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
 

 

dupilcate elimination while loading a flat file into a VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Sep 14, 2005 6:06 pm    Post subject: dupilcate elimination while loading a flat file into a VSAM
Reply with quote

hi all

how to eliminate the dupilcate records while loading a flat file into a VSAM??


kumar.p.v
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Sep 15, 2005 9:38 am    Post subject: Re: dupilcate elimination while loading a flat file into a V
Reply with quote

Hi,

Quote:
how to eliminate the dupilcate records while loading a flat file into a VSAM??


You have to add one simple step before loading the flat file into VSAM

Code:
//STEP01  EXEC PGM=SORT                               
//SORTIN  DD DSN=Input FIle,DISP=SHR     
//SORTOUT DD DSN=Same as Input File,DISP=SHR     
//SYSIN   DD *                                       
 SORT FIELDS=(1,5,CH,A)                               
 SUM FIELDS=NONE                                     
/*                                                   
//SYSOUT       DD SYSOUT=*                           
//SYSUDUMP   DD SYSOUT=* 


Hope it helps

Regards
Rupesh
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Thu Sep 15, 2005 10:10 am    Post subject: Re: dupilcate elimination while loading a flat file into a V
Reply with quote

thanx rupesh.. apart from sorting using sum fileds=none is there any code to do the same thing..

kumar.p.v
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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