Q

Print a PDF file from the iSeries

One user writes, "I'm having trouble with embedded spaces with the STRPCCMD command. The following works when I type it into the Windows start, run box: "C:Program FilesAdobeAcrobat 6.0acrobat.exe /p M:Blueprintssample.pdf" Thanksfully, Shahar Mor was on hand to offer a solution.

I'm having trouble with embedded spaces with the STRPCCMD command. The following works when I type it into the...

Windows start, run box: "C:Program FilesAdobeAcrobat 6.0acrobat.exe /p M:Blueprintssample.pdf"

When I try to type the same string into the PCCMD parameter of the STRPCCMD command, I get an error that the command does not like the space between the "program" and "files".

STRPCCMD works if I just pass the "M:Blueprintssample.pdf", my PC opens the file with Adobe, and I can view the blueprint. But what I am really trying to do is to print the blueprint, so I was hoping to call Adobe Acrobat with the "/p" switch, which would get me one step closer to printing the blueprint.

I hope either you can tell me how to pass a file name with embedded spaces to the STRPCCMD, or perhaps you have a better way to print a PDF file from the iSeries.

You can use ftp to create a spool file with the PDF in it. For example:

1. crtprtf mylib/myprtf *usrascii
2. ftp loopback
user password
bin
cd mylib
put mypdf myprtf
quit

This creates a new spool file with the PDF file in it.

This was last published in January 2006

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close