Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
Author Message
kumar_ngl
Warnings : 1

Active User


Joined: 05 Aug 2005
Posts: 51
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
References
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 486

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

Active User


Joined: 05 Aug 2005
Posts: 51
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1