parameter file in easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

parameter file in easytrieve

Postby abby_kr » Wed May 26, 2010 5:22 pm

Hi,

I am trying to use this command thru a parameter file
If file-1.Variable-1 EQ 'ABCD'
do something
END if
Now going forward 'ABCD' can have one more value and the if conditino would change to
If file-1.Variable-1 EQ 'ABCD' 'EFGH'
do something
END if

So I want to keep 'ABCD' in a file-2 and want to store this file into array. then want to search array for each records coming from File-1 against array.
I know how to do this in COBOL.
Can i do this in easytrieve using table functionality.

any easy way of doing this.

thanks,
A
abby_kr
 
Posts: 1
Joined: Wed May 26, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: parameter file in easytrieve

Postby dick scherrer » Thu May 27, 2010 12:52 am

Hello,

Yes, define an array for file-2, read file-2 and move each value to the array.

Then process the input data (file-1) against the array. After each read, go thru a loop checking the file value against the array values.

You could possibly use the TABLE file definition also.
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 CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post