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

how to load Flatfile to VSAM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinivas_443

New User


Joined: 19 Dec 2007
Posts: 11
Location: chennai

PostPosted: Mon Feb 11, 2008 4:57 pm
Reply with quote

Hi all

Please explain any one….

I have a flat file having duplicates in that and I need to load to VSAM file.
I need to sort before loading into VSAM?


Regards,
Srinivas Jala
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Feb 11, 2008 5:06 pm
Reply with quote

use DFSORT to sort, drop your dups and load to the vsam file.

lots of examples in the dfsort/utilities forum
Back to top
View user's profile Send private message
srinivas_443

New User


Joined: 19 Dec 2007
Posts: 11
Location: chennai

PostPosted: Mon Feb 11, 2008 5:12 pm
Reply with quote

Hi Brenholtz,

I have one question here with duplicates we can load in to VSAM? VSAm will take duplicates are not? Please clarify this.


Regards,
Srinivas Jala
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 11, 2008 5:15 pm
Reply with quote

Hi ,

KSDS cannot take duplicates in its key region, rest ESDS and RRDS can take , so it all boils down to what type of VSAM ds u r using, can u get back with the type of VSAM file u use ???

Thamilzan.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Feb 11, 2008 5:30 pm
Reply with quote

Quote:
I have one question here with duplicates we can load in to VSAM? VSAm will take duplicates are not?

You can load VSAM file using a PS file which contains duplicate records but duplicates wont get loaded in KSDS file.
There is a parameter named ELIMIT which can control the number of "error records " REPRO will ignore. An error record can be a duplicate.
If the limit specified in ELIMIT is exceeded ( if number of duplicates are more than ELIMIT) then REPRO command will be terminate with an error.
Back to top
View user's profile Send private message
srinivas_443

New User


Joined: 19 Dec 2007
Posts: 11
Location: chennai

PostPosted: Mon Feb 11, 2008 6:11 pm
Reply with quote

Hi

Thanks for all your help and support

Regards,
Srinivas Jala
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top