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
 

 

vsam is better r processing through array

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
virumf

New User


Joined: 07 May 2007
Posts: 6
Location: bangalore

PostPosted: Fri Oct 05, 2007 12:46 pm    Post subject: vsam is better r processing through array
Reply with quote

Hi,
can any one help me out in knowing whether processing an input,loading it into vsam is better or reading and input sequential n loading it into an array and then processing it.
Say input has around 500 records,need to do search on that input depending on some criteria,so i thought of going for loading that input into vsam and then it becomes easy for processing in the program.
but there is also another solution like loading that input into an array and then do search on that array...
which is best solution overall...?
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Fri Oct 05, 2007 1:18 pm    Post subject:
Reply with quote

Viru,

Quote:
can any one help me out in knowing

Only one way, why dont you implement and let us know.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Oct 05, 2007 1:24 pm    Post subject: Re: vsam is better r processing through array
Reply with quote

virumf wrote:
Say input has around 500 records,need to do search on that input depending on some criteria,so i thought of going for loading that input into vsam and then it becomes easy for processing in the program.
but there is also another solution like loading that input into an array and then do search on that array...
which is best solution overall...?
It all depends, but for a small amount of data (500?) that currently does not have any VSAM structure, I'd lean towards the array....
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Oct 05, 2007 1:25 pm    Post subject:
Reply with quote

Hello Virumf and wlecome to the forums,

What do you consider "better"?
Back to top
View user's profile Send private message
virumf

New User


Joined: 07 May 2007
Posts: 6
Location: bangalore

PostPosted: Fri Oct 05, 2007 1:59 pm    Post subject: performance of vsam n array
Reply with quote

Hi,
Thnx for replies..
here "better" i mean perfromance wise and also i/o overheads..
look forward to more feedback from you all
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Oct 05, 2007 9:36 pm    Post subject:
Reply with quote

Hello,

Well, if you use the array, there should be no additional i/o.

If you use the array efficiently (SEARCH ALL) and do not perform the search when not needed (the "thing" you are are about to search for is the "thing" you last searched for), it will not take so much cpu time.

If the array needs to be updated as you go, this further reduces resources needed if vsam is used.

From what has been posted, i'd suggest the array.
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 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 Run stats processing on zIIP Engine Virendra Shambharkar DB2 9 Fri Oct 14, 2016 10:24 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