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
 

 

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: 6967
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 Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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