Page 1 of 1

parameter file in easytrieve

PostPosted: Wed May 26, 2010 5:22 pm
by abby_kr
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

Re: parameter file in easytrieve

PostPosted: Thu May 27, 2010 12:52 am
by dick scherrer
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.