Page 1 of 1

Reading next file

PostPosted: Sat Jun 28, 2008 2:22 pm
by ram23bal
Hi All,

I have a small query in Easy trieve.

Is it possible to read the next file while the current file is in progress.

Say for example my PS file is as follows
-----------------------------------------------------------
SEGMENT |
------------------------------------------------------------
CUSTOMER 001928989 ACCOUNT 100484 CHENNAI
ACCOUNT 1111111111 SAVING 10000000
ACCOUNT 1111111113 SAVING 10000000
ACCOUNT 1111111114 SAVING 10000000
ACCOUNT 1111111115 SAVING 10000000
ACCOUNT 1111111116 SAVING 10000000
CARD VISA DEBT 09192839494
ADDRESS BESABT NAGAR CHENNAI

I want to read the CUSTOMER segment first and put it in a outfile( this can be done no probs)
Second thing is I should put the ADDRESS segment in outfile before reading ACCOUNT segment.
Is it possible to perform without using arrays, why because I donno how many ACCOUNT segments are present. All the segments are cyclic they will be repeating.

Waiting for a solution

Re: Reading next file

PostPosted: Sun Jun 29, 2008 12:18 am
by dick scherrer
Hello,

Waiting for a solution
You may be waiting for a while. . . I'm sure your request is completely clear to you, but is not to others (i.e. - me ;) ).

Which kind of segment is being used? From some database?

Second thing is I should put the ADDRESS segment in outfile before reading ACCOUNT segment.
We have not been able to convince CA that "Psychic Mode" should be incorporated into easytrieve. How do you propose to put something nto the output that has not yet been gotten?

If you explain what you need to do rather than how you want/don't want to solve it, we may be able to offer suggestions.