I've a 2 suite set of programs that runs via a Unix script with its entries:
run PROG01
D01 (Depot)
R12 (Rep No.)
run PROG02
Tom (Print recipient 1)
Dick (Recipient 2)
[Space] (signify end of recipient list)
We've now got 30 depots and lots of reps so the script consists, now, of the above lines
repeated many, many times. I'd like to put the processing in loop(s) but I'm struggling. The
rep nos. follow no sequence and the recipients are varied, both in name and number. For
example, we want all depots, but we want reports for say, depot 1, rep. 12 to go to Tom and
Fred, depot 1, rep.34 to go to Fred, depot 2, rep. 11 to go to Bill, Dick and Harry, depot
2, rep. 13 to go to Tom and so on and so on.
Can it be done in a number of embedded loop? Have I given a clear enough explanation?
run PROG01
D01 (Depot)
R12 (Rep No.)
run PROG02
Tom (Print recipient 1)
Dick (Recipient 2)
[Space] (signify end of recipient list)
We've now got 30 depots and lots of reps so the script consists, now, of the above lines
repeated many, many times. I'd like to put the processing in loop(s) but I'm struggling. The
rep nos. follow no sequence and the recipients are varied, both in name and number. For
example, we want all depots, but we want reports for say, depot 1, rep. 12 to go to Tom and
Fred, depot 1, rep.34 to go to Fred, depot 2, rep. 11 to go to Bill, Dick and Harry, depot
2, rep. 13 to go to Tom and so on and so on.
Can it be done in a number of embedded loop? Have I given a clear enough explanation?