TechTalk: Printer File Names

System Administration
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Q. I am trying to write an RPG program which will create print files with varying spool file names. The input file I am reading will contain the name of the print file to be created. I have tried using OVRPRTF, but the spool file name which is created is the same as the file name in the RPG program. I have tried to change the name using CHGSPLFA but this command does not allow you to change the file name.

A. On the OVRPRTF command, there is a parameter called SPLFNAME which you can use to make the spooled file any name you wish.

If you want to do it all in RPG, code UC in columns 71-72 of the F-spec for the PRINTER file. Then run the OVRPRTF command using QCMDEXC before you OPEN the printer file manually in the RPG program.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$