Creating printer file?

1590 pts.
Tags:
AS/400 Printer File
AS/400 printing
How can i creat a simple printer file please explain with some direct code examples from AS/400 screen. also explain use of its basic keywords like,spaceA.SPACEB,SKIPA,SKIPB etc.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You can find detailed information on all the DDS keywords for printer files with example printer files in <a href=”http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzakd/kickoff.htm&tocNode=int_210939″>DDS for Printer Files</a>

Regards,

Martin Gilbert.
———————————————————————————————————————————-
Hey man,

Check it out, Search400 put out a really cool article years ago on this very subject. It requires an imagination…

1. Create a DSPF.
2. 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.
3. Once you have created the records you need, save the SOURCE ONLY, ÐO NOT CREATE IT THE DSPF, AND DO NOT COMPILE IT. cool.
4. Go to the source member and take option 2 to edit the source.
5. Make the below change to the keyword at the top of the member:
FROM: <b>DSPSIZ(24 80 *DS3)</b>
TO: <b>DSPSIZ(27 132 *DS3)</b>
6. Save the changes, and exit the source member.
7. Take option 17 on the source member to edit it via SDA.
8. You will now see that the display is larger… large enough for a report of 132… (not too scabby!)
9. Go into each of the records you made via 12 for design.
10. Design your report. You can add fields, name them, etc.

<b>WHEN YOU ARE DONE…</b>
1. Save the source, DO NOT COMPILE!
2. Change the Source Type from DSPF to PRTF.
3. Take option 2 to edit the member.
4. DELETE STUFF:
a. Remove all the weird SDA comments.
b. Remove all keywords at the top of member before the record starts.
c. Remove any Keyboard Shift’s of <b>Y</b>.
d. If you need indicators, go for it; if not, Remove them.
e. Remove any other keywords like CLR, DSPATR, etc.
f. Remove the Usage if it’s anything other than <b>O</b>. 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
~SR~

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, Maybe the following link will help :- Guide to as400 Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Sylvana
    HI, Home > IT Answers > AS/400 > Creating printer file?This question has been added to your watchlist. ShatteredRaven77 I made exactly everything you said before, however what happend with printer file *file, i just have source member. thank you Sylvana
    185 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following