Hi, Im in bit of a jam here and I can't seem to figure this out.
Ive been looking for a little over a few hours for an answer to this but I can't seem to find a straight answer.
Well Im in my advanced portion of my class and we have this assignment that requires we load a pre-compiled table then use the table to calculate how much a call costs.
Well my book it covers the subject of how to do it but it doesn't explain how it works
FGTCLSP IT F 10 DISK DTABCHARGE S 10 DIM(X) D FROMFILE(GTCLSP)
That's how I have it written out in my program, I assume thats correct. X is not yet defined as this is what I am coming here for.
Im not sure as to how the file is loaded into the table
is it as I'm assuming:
Tabcharge1 = Field 1, tabcharge2 = field 2, etc, etc
which would mean its splinters the file which would mean I would have to reserve how many records there are by fields or does it store it by record?
then after solving that problem I have another question, if it stores as the first way I assumed (by field) how would i go about searching by increment, like how you would through a file(which is the way I would prefer to do this but the assignment requires it through a table) like I would know the field I want is the 4th and then after that it would be every 6(total amt of fields).
I know %Lookup is what Im supposed to use to find an exact match but this program is supposed to work with input that would change over time, making a search seem useless unless Im missing something. Thanks ahead of time.
Time is of the essence, THANKS!