AS/400 page range not working to RPM

I am printing to RPM from an AS/400. When I specify a page range on the spool file, the entire document prints anyway. Is there any way for RPM to honor the page range setting on the AS/400?

The problem is not with RPM, but with the AS/400. Specifically, remote OUTQs do not limit the pages to the specified page range, only standard OUTQs and devices.

Basically, the AS/400 knows what you want but is not telling RPM (or any other 3rd party LPD product).

IBM provides a program with source that will allow a user to specify a page range printed or sent via RMTOUTQs that are configured with a connection type of *IP or using the LPR or SNDTCPSPLF commands. The program is called TSPRWPR and details can be found on the IBM website. Or, perform a web search for the program name "TSPRWPR" which should locate the IBM document.