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 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