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: 6966
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: 685
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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am


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