95 pts.
 RUNRMTCMD Spooled file output
We are using RUNRMTCMD between two i boxes using IP. We are calling a CL program on the remote box. It connects and runs the CL program successfully. The CL invokes an RPG program that produces a printed report. The report is not going to the outq associated with the user profile on the remote system as I was hoping it would. Instead the spooled file output produced by an RPG program is transmitted back to the calling system and shows up back on the calling system in a QSYSPRT spooled file. I really would like the listing to stay on the remote (called) machine in the outq associated with the user profile that is being used on the remote system. How can that be done? Thanks, scott

Software/Hardware used:
ASKED: June 11, 2009  6:16 PM
UPDATED: June 11, 2009  8:11 PM

Answer Wiki:
I found my own answer at the following link (see page 3) <a href="http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/rzal7/rzal7.pdf">REXEC Manual</a> Everybody else may already know this but it was news to me...RUNRMTCMD does an OVRPRTF to change the USER DATA, then uses that information to retrieve and generated spool files and returns them to the calling system. By making the override of the printfile that we already had in place a SECURE overide we were able to get the generated reports to remain on the called system.
Last Wiki Answer Submitted:  June 11, 2009  8:11 pm  by  Shamilton   95 pts.
All Answer Wiki Contributors:  Shamilton   95 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _