Hi folks,
I have a problem "reformatting" a file using the edit.
The input file has 4 cases.
In the output, all the cases are fine, but for the very first one (case 201), which writes all the record types, even if they do not exist in the input file.
As for the ones that do exist, it writes the maximum number of occurrences.
For example, records
B_MORADORES_SUP has 20 occurrences
Y_VISITA_SUP has 40 occurrences
The other 3 cases look fine.
Attached the whole application, it is a very simple one, it is meant to write a different record key, using the supervisor identity as the first element of the ID.
By the way. what I really needed was an instruction of assigning record contents, that is, copying the whole record, instead of copying fields, I already asked for that, but, Christmas is very far away.
Best
Ari
First case seems full of unwanted records
First case seems full of unwanted records
- Attachments
-
- FirstCase.rar
- (154.4 KiB) Downloaded 406 times
Best
Ari
Ari
-
- Posts: 1879
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: First case seems full of unwanted records
You do this after writing the first case (in PROC IDS0_EDT):
clear(PDP_15_ENTREVISTA_SUPERVISOR_DICT);
However, that means that the first case has an entire set of record occurrences. I would remove the code from there and instead do this:PROC PDP_10_ENTREVISTA_LEVEL
preproc
clear(PDP_15_ENTREVISTA_SUPERVISOR_DICT);
preproc
clear(PDP_15_ENTREVISTA_SUPERVISOR_DICT);