Filling an Array from a VSAM



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

Filling an Array from a VSAM

Postby Mitch Artz » Sat Nov 20, 2010 3:06 am

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
Mitch Artz
 
Posts: 1
Joined: Sat Nov 20, 2010 2:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: Filling an Array from a VSAM

Postby dick scherrer » Sat Nov 20, 2010 4:03 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post