Hi all. This may be more appropriate to the DDS forums, not entirely sure.
To make a long story short, I'm a student working on a group project, and coming from other languages, my instinct is to template things to standardize them.
My idea was to use a display file that would contain a header and footer record format that my fellow groupmates would use, and that each program they did would also have a separate display file to incorporate the formats specific to their programs.
However, putting this into practice has been frustrating at best.
The header/footer display file (named HEADFOOT) has two formats, named HEADER and FOOTER. Footer is declared with OVERLAY.
Another display file, named EXAMPLE, has one format (named MAINSCRN), also declared with OVERLAY.
In trying to display these, how I would do it with a single display file would be:
Write HEADER;
Write FOOTER;
Exfmt MAINSCRN;
What actually occurs is that upon calling this program, the only thing visible on the screen is MAINSCRN - HEADER and FOOTER never appear. The desired behavior is for HEADER and FOOTER should print, followed by MAINSCRN which actually contains changeable fields.
A lot of research has lead me to various things such as compiling with RSTDSP(*YES), the nebulous KEEP and ASSUME keywords, dummy record formats, and a lot more. Some of this information seems very dated, or is written in a very cryptic fixed format I can't seem to decipher. Is anyone able to help with this? I can post whatever code is necessary.
To make a long story short, I'm a student working on a group project, and coming from other languages, my instinct is to template things to standardize them.
My idea was to use a display file that would contain a header and footer record format that my fellow groupmates would use, and that each program they did would also have a separate display file to incorporate the formats specific to their programs.
However, putting this into practice has been frustrating at best.
The header/footer display file (named HEADFOOT) has two formats, named HEADER and FOOTER. Footer is declared with OVERLAY.
Another display file, named EXAMPLE, has one format (named MAINSCRN), also declared with OVERLAY.
In trying to display these, how I would do it with a single display file would be:
Write HEADER;
Write FOOTER;
Exfmt MAINSCRN;
What actually occurs is that upon calling this program, the only thing visible on the screen is MAINSCRN - HEADER and FOOTER never appear. The desired behavior is for HEADER and FOOTER should print, followed by MAINSCRN which actually contains changeable fields.
A lot of research has lead me to various things such as compiling with RSTDSP(*YES), the nebulous KEEP and ASSUME keywords, dummy record formats, and a lot more. Some of this information seems very dated, or is written in a very cryptic fixed format I can't seem to decipher. Is anyone able to help with this? I can post whatever code is necessary.






Comment