Page 1 of 1

Filling an Array from a VSAM

PostPosted: Sat Nov 20, 2010 3:06 am
by Mitch Artz
I have this map with an array that I'm trying to fill after searching a VSAM file for one of three fields. The three fields will be Vehicle ID(Primary Key), Manufacturer(Alt Key) or Model(Alt Key). I'm wondering what the best method of displaying the data would be. What I want to be able to do is scroll up and down through the data that meet the requirements of the search. I currently have an array setup in the map to hold the data but I'm not sure how to handle scrolling up and down. Would it be easiest for me to take the results of my search and create a new file that will hold the search results and then just display them in the array?

Here is the map I currently have setup.
Image

Re: Filling an Array from a VSAM

PostPosted: Sat Nov 20, 2010 4:03 am
by dick scherrer
Hello and welcome to the forum,

Suggest you save the "high" and "low" values from the screen array in another array in the code. As scrolling goes "up" add a new entry to the array in the code and use these values to control forward/backward scrolling. If scrolling goes "down" use the previous entry in the array in the code.

Be aware that if records are added or deleted from another terminal, your pointers may not remain constant.