Reverse Printing

60 pts.
Tags:
AS/400 printing
I wanna ask if there's a way to reverse the printing of a certain spoolfile? If there is, can somepne please show me the code/process on how to do it. Thanks a lot.
1

Answer Wiki

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

reverse the printing??
Do you want to print page 10, then 9, then 8 …?
No, there is no easy was to do it on the 400.

Phil

—————
Sloopy got it – the not so easy way.
And I think that assumes that you aren’t using AFPDS.

Phil
—————-

Discuss This Question: 3  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.
  • Sloopy
    Hmm... Interesting! If you want to do as Phil suggests - that is, print the last page first and so on - copy the sppoled file to a database file with print control characters, then read that file. When you read a SKIP BEFORE print control character, store the record's RRN in an array. At the end of that, read the array backwards and position to that RRN. Read forwards until either the RRN = the next array entry or End of File. Write each data line out on QSYSPRT. When the end condition is met read the previous array entry. Stop at end of data on array entry 1. Watch out for underlines and bolds, which may create a print line which should be printed at the same position as another line! These have to be dealt with, but it's not so difficult to do. Regards, Sloopy
    2,195 pointsBadges:
    report
  • Yorkshireman
    Reverse the printing? like - take the ink back off the page. .. . Hey - we could just loan out the paper to users, and have them hand it back to be reverse printed and used again. - Could be money in it ... Seriously though - as suggested, you need to CPYSPLF to a DB file, then manipulate it. - Or tell the user to look at the back page first.. . - Give the paper stack to them upside down? ??
    6,085 pointsBadges:
    report
  • Sloopy
    It's really the equivalent of setting the 'reverse' collating sequence in WINDOWS - except that CRTPRTF, OVRPRTF and the Printer file DDS don't allow that option anywhere. It would certainly be possible to write a command and CPP to do this for any non-AFPDS spooled file. I'm tied up for this week, but do any of you want to do it? Sloopy
    2,195 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.

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

Following

Share this item with your network: