Use of 'Depending on' Phrase in EZTrieve Source



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

Use of 'Depending on' Phrase in EZTrieve Source

Postby Vivek_w » Thu May 06, 2010 11:42 am

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...
Vivek_w
 
Posts: 2
Joined: Wed May 05, 2010 11:13 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby William Thompson » Thu May 06, 2010 1:44 pm

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 ......
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

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

Postby William Thompson » Thu May 06, 2010 2:37 pm

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....
William Thompson
 
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

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

Postby Vivek_w » Thu May 06, 2010 3:02 pm

Well, that seemed to be the obvious solution, but was hoping there was some workaround for it. Anyway, thank you William.
Vivek_w
 
Posts: 2
Joined: Wed May 05, 2010 11:13 am
Has thanked: 0 time
Been thanked: 0 time


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post