Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts processing a XML file in PL/1 grvtomar PL/I & Assembler 2 Fri Jun 09, 2017 1:07 pm
No new posts File processing vishwakotin Mainframe Interview Questions 14 Fri Apr 28, 2017 11:38 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us