IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

dupilcate elimination while loading a flat file into a VSAM


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 463

PostPosted: Thu Sep 15, 2005 9:38 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top