RUNRMTCMD Spooled file output

95 pts.
Tags:
RUNRMTCMD
Spool files
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

Answer Wiki

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

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.

Discuss This Question:  

 
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.

REGISTER or login:

Forgot Password?
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

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.

REGISTER or login:

Forgot Password?
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

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

Following