Page 1 of 1

Use of 'Depending on' Phrase in EZTrieve Source

PostPosted: Thu May 06, 2010 11:42 am
by Vivek_w
Hi,
I have a requirement wherin I'm required to code the copybook into an EZTrieve Source. There is a certain code fragment in the copybook that goes something like this.

.
.
.
05-Level-Variable.
10-No-Of-Years 9(02)
10-No-Of-Balances Occurs 1-6
Depending on No-Of-Years
Indexed by Years-Index
.
.
.

I need to code this fragment into EZTrieve source. I have been unable to code this 'Depending on' phrase into my code, no matter how much I tried. I would really appreciate any help you can offer me in this regard. Thanks.

Ciao.
Wilson...

Re: Use of 'Depending on' Phrase in EZTrieve Source

PostPosted: Thu May 06, 2010 1:44 pm
by William Thompson
Grief :o
If "No-Of-Balances" is the last field in the record, just define it as occuring the max times and use care in observing the depending on value.
Care will be needed to input and output the record.
If it is in the middle of the record, as I said before, Grief :o ......

Re: Use of 'Depending on' Phrase in EZTrieve Source

PostPosted: Thu May 06, 2010 2:37 pm
by William Thompson
Vivek_w wrote:Subject: Use of 'Depending on' Phrase in EZTrieve Source

William Thompson wrote:Grief :o
If "No-Of-Balances" is the last field in the record, just define it as occuring the max times and use care in observing the depending on value.
Care will be needed to input and output the record.
If it is in the middle of the record, as I said before, Grief :o ......



By Grief, did you mean 'What a dumb question!', or 'Tough Luck.'?
No, not a dumb question but close to tough luck.

If the variable portion is at the end, it is doable, but in the middle... Let me say, if only a max of six then it won't take too much code to handle it but it will not be pretty....grin....

Re: Use of 'Depending on' Phrase in EZTrieve Source

PostPosted: Thu May 06, 2010 3:02 pm
by Vivek_w
Well, that seemed to be the obvious solution, but was hoping there was some workaround for it. Anyway, thank you William.