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

A real time VSAM scenario


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

New User


Joined: 29 Oct 2007
Posts: 17
Location: Noida

PostPosted: Tue Nov 02, 2010 11:30 am
Reply with quote

A customer has a KSDS file loaded with just one record with key value 0.
He runs a batch job to add a few records with very high numeric key.
He has an online application which is capable of adding lots of records which can have keys less than the ones inputted by batch.

Will the application create any problem?

If yes, what is the problem and its solution?

Thanks & regards
Gaurav Chauhan.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 02, 2010 3:14 pm
Reply with quote

What has happened so far. Are there any problems.
Have you monitored the KSDS file, and if so what did you see in the way of changes or whatever.

This is something that you should investigate for yourself and then post if you find problems or something you do not understand.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 02, 2010 4:12 pm
Reply with quote

Doing simultaneous updates in batch and online to a VSAM file has been discussed in the last week on this forum. Have you searched the forum yet?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 02, 2010 4:15 pm
Reply with quote

Robert Sample wrote:
Have you searched the forum yet?
36_11_6.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 02, 2010 4:17 pm
Reply with quote

Hey, expat, one can hope, right? icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 02, 2010 4:41 pm
Reply with quote

Yeah. I do, along with others, try to steer the posters to the correct route to follow for problem resolution, but some days I just give up.

Guess today could be one of my more acidic days icon_lol.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 02, 2010 5:09 pm
Reply with quote

Well, let's answer the original questions:
Quote:
Will the application create any problem?

If yes, what is the problem and its solution?
Yes, the application will create problems. These problems can vary from not being able to access recently added records to complete file corruption requiring the VSAM file to be deleted and rebuilt from scratch.

There is a link to manuals at the top of the page. Click on it, find the manual titled "VSAM Services for DFSMS" (which IBM calls DFSMS Access Method Services for Catalogs) and read -- extremely carefully -- the DEFINE CLUSTER options for SHROPTIONS. Updating a VSAM file online and in batch at the same time can be done -- but it requires use of enqueue and dequeue to serialize the updates. If updates are not serialized, the index and data components can get out of sync and if that happens the VSAM file must be deleted and rebuilt.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 02, 2010 5:34 pm
Reply with quote

Robert,

I was thinking along the same lines and would have suggested an investigation into DFSMStvs as an option.

However, and not at all surprising, the OP had given insufficient information for me to want to comment as they did not specify concurrent updates, so I assumed sequential update of the file, first by batch and subsequently via oline transaction(s).

As more experienced users we should be aware of possible pitfalls but wouldn't it be oohhh soooooo nice to actually have someone post on the forum and give ALL of the information in the first post.

Guess that's about the same probability of winning the lottery really.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 02, 2010 5:55 pm
Reply with quote

I think the lottery odds are somewhat better -- the two big games here are 139 million to 1 and 195 million to 1!

Even without simultaneous updates online and in batch, there's a real potential for data corruption -- if the online application just inserts records after the batch updates are done, I can still see issues unless the online system closes and reopens the file (and what a waste that could be)!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 02, 2010 9:01 pm
Reply with quote

Quote:
wouldn't it be oohhh soooooo nice to actually have someone post on the forum and give ALL of the information in the first post
Methinks that the folks who know "all of the information" also know the pitfalls/problems. . .

I believe we're here primarily for the folks who don't have so much depth yet. . . icon_cool.gif

d
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Nov 03, 2010 1:15 am
Reply with quote

expat wrote:
wouldn't it be oohhh soooooo nice to actually have someone post on the forum and give ALL of the information in the first post.

If it's any consolation, I spent a non-trivial proportion of my time dealing with defect reports from my own shop (I'm the senior tools development analyst, therefore I must know everything, right? Be nice if it were true...) showing the same appalling misunderstandings and lack of useful information. The only difference is that I'm close enough to the querents to limp over to them and beat them with my cane until they tell me what I need to know to solve their problems.
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts C Compile time time stamps Java & MQSeries 10
Search our Forums:

Back to Top