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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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