I am trying to use RUNRMTCMD in a CL to run a CL on another iSeries. Parameters are being passed. The problem is getting a response back using the variables to the calling program.

When you issue a RUNRMTCMD, the results of the command output are supposed to be returned in a spooled file on the local iSeries. I've never been able to make this work. The simplest way to do it is to create a Data Queue on each system. The local system should have the *STD data queue and the far system should have a *DDM data queue. Have the results on the far system write to the Data Queue and upon returning to the local program, have the current program read the Data Queue for the results.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.


This was first published in August 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: