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

Search randomly with the records in VSAM file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shahul hameed abdul kader
Currently Banned

New User


Joined: 20 Feb 2008
Posts: 5
Location: navalur

PostPosted: Tue Mar 04, 2008 11:28 am
Reply with quote

I have one sequential file with records like bank id and I want to search randomly with the records in VSAM file. So I declared in the file section access mode is random so how can I search the particular record in the VSAM file?
Back to top
View user's profile Send private message
r.ravikumar

New User


Joined: 05 Jan 2007
Posts: 18
Location: chennai

PostPosted: Tue Mar 04, 2008 12:04 pm
Reply with quote

HI shahul,

You can pass the value from sequential file to 'Record Key' of VSAM file to access the record in random
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Mar 04, 2008 12:40 pm
Reply with quote

Even though access is random, it is always good practice to sort the control file by the VSAM key before getting the records as you may eliminate a number of I/O operations by reusing the index CI's in memory rather than skipping around the KSDS totaslly randonly, and at some stage in the future reloading the same CI into memory.

In one case many years ago, this took over 30 minutes off of the elapsed time of one job.

Also may be an idea to increase the number of index buffers allocated to your KSDS file, say 10.
Back to top
View user's profile Send private message
shahul hameed abdul kader
Currently Banned

New User


Joined: 20 Feb 2008
Posts: 5
Location: navalur

PostPosted: Tue Mar 04, 2008 2:09 pm
Reply with quote

I want to search a particular record from one ps file with set of records in VSAM file in random mode if any match then display the same. moreover I assigned access mode is random.

thanks
Back to top
View user's profile Send private message
kishorekyn

New User


Joined: 20 Feb 2008
Posts: 5
Location: Chennai

PostPosted: Sun Apr 13, 2008 1:55 pm
Reply with quote

Just let me know what kind of a VSAM file it is... Then we could help you out
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: Sun Apr 13, 2008 4:36 pm
Reply with quote

Hello kishorekyn,

Please notice that the person you are replying to has been "banned", so they will probably not be able to post the info you asked for. . .
Back to top
View user's profile Send private message
kishorekyn

New User


Joined: 20 Feb 2008
Posts: 5
Location: Chennai

PostPosted: Mon Apr 14, 2008 11:12 am
Reply with quote

Thanks Dick.... I din't notice that. Sorry
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: Mon Apr 14, 2008 7:10 pm
Reply with quote

You're welcome icon_smile.gif

I'm sure there will be other opportunities icon_wink.gif

d
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top