Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to load Flatfile to VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to load Flatfile to VSAM
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: 6968
Location: porcelain throne

PostPosted: Mon Feb 11, 2008 5:06 pm    Post subject:
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    Post subject:
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    Post subject:
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: 686
Location: Earth

PostPosted: Mon Feb 11, 2008 5:30 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us