MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM loading

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Thu Sep 04, 2008 10:11 am    Post subject: VSAM loading Reply with quote

Hi,

I get a dump of data from a system and I need to load that onto VSAM file and start my process. I dont want to delete/define my VSAM cluster every time as it would use too many resources.

Can I just remove the existing data and load the VSAM with the new data from the Flat file usng simple JCL steps?

Thanks
Arvind B
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12368
Topics: 75
Location: San Jose

PostPosted: Thu Sep 04, 2008 10:15 am    Post subject: Reply with quote

arvibala,

Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?p=9479#9479
Back to top
View user's profile Send private message Send e-mail Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Sep 05, 2008 1:29 am    Post subject: Reply with quote

Quote:
I dont want to delete/define my VSAM cluster every time as it would use too many resources.

May I ask the theory behind that statement ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Sep 05, 2008 7:55 am    Post subject: Reply with quote

And what kind of VSAM dataset is it? If it is a KSDS you should sort the data and what about CA splits and CI splits? You have to delete the old data which means that that has to be managed by VSAM as well. Probably the fastest way is to delete and define the dataset. I do not know who keeps coming up with sometimes absurd requirements. Take the time and test the different posibilities, you will learn a lot and probably be very surprised too.
Back to top
View user's profile Send private message Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Fri Sep 05, 2008 4:18 pm    Post subject: Reply with quote

Yeah .. it is a KSDS.

The need for this is that the Vendor side maintains 2 tables and they say that they change the contents of the table every day and send us the DUMP in Flat Files. Because we need those data to process our daily routine we need the data in VSAM. And because we know that the data changes in VSAM, we need to have them deleted and have the new data loaded. And these happen daily. I think this can be done easily but I have do some homework, just wanna check if I can get some ideas from u all.

Kolusu, I did have a look at ur logic too, but I am expecting something much simpler. Maybe will work out something and post it here, if I find some.

Thanks,
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Mon Sep 08, 2008 12:53 am    Post subject: Reply with quote

I would say that there is no way around doing a delete and define of the cluster, which gives you a clean definition without CA and CI splits. Any other way will probably require more resources. Deleting the records requires that VSAM has to change indexing for each delete which is useless and a waste of resources if you are deleting all records anyway. Try testing both ways, I think you will be surprised how much more overhead you would have deleting the records compared to just deleting and defining the cluster.
Back to top
View user's profile Send private message Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Wed Sep 10, 2008 12:52 am    Post subject: Reply with quote

Thanks,

I am going with Delete/Define option
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group