You can find detailed information on all the DDS keywords for printer files with example printer files in DDS for Printer Files.
Check it out, Search400 put out a really cool article years ago on this very subject. It requires an imagination…
- Create a DSPF.
- Create the records in the DSPF as you would want them in the printer file, such as Headers, Ðetails, Totals, etc. You must make 1 change in order to save the record, so just put in *DATE, and save the changes. Do that for each record.
- Once you have created the records you need, save the SOURCE ONLY, ÐO NOT CREATE IT THE DSPF, AND DO NOT COMPILE IT. cool.
- Go to the source member and take option 2 to edit the source.
- Make the below change to the keyword at the top of the member: FROM: DSPSIZ(24 80 *DS3) TO: DSPSIZ(27 132 *DS3)
- Save the changes, and exit the source member.
- Take option 17 on the source member to edit it via SDA.
- You will now see that the display is larger… large enough for a report of 132… (not too scabby!)
- Go into each of the records you made via 12 for design.
- Design your report. You can add fields, name them, etc.
WHEN YOU ARE DONE…
- Save the source, DO NOT COMPILE!
- Change the Source Type from DSPF to PRTF.
- Take option 2 to edit the member.
- DELETE STUFF
- Remove all the weird SDA comments.
- Remove all keywords at the top of member before the record starts.
- Remove any Keyboard Shift’s of Y.
- If you need indicators, go for it; if not, Remove them.
- Remove any other keywords like CLR, DSPATR, etc.
- Remove the Usage if it’s anything other than O. If you don’t like the O, you don’t have to keep it there.
Wahlah! Compile it, fix anything you may have missed, and now the record format names are now Except Names, now just code your program up and bam, good to go.
The Shattered Raven