40 pts.
0
Q:
Will RUNRMTCMD hold the host session until the program execution completes in the remote machine?
Hi,

When executing RUNRMTCMD to run a long runnibg program in a remote iSeries partition, will the session on the host machine be held until the long running program completes in the remote partition?

Any chance that a 'fire and forget' kind of effect can be achieved? i.e. I would like to have control back as soon as possible.

Thanks

Regard
Fred
ASKED: Jan 14 2009  1:15 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
560 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Chandlerbing818 -

> Any chance that a 'fire and forget' kind of effect can be achieved? i.e.
> I would like to have control back as soon as possible.

Use the Submit Job (SBMJOB) command.

It is a very complex command, so just the SBMJOB and the procedure to call is not a real option in my opinion.
This command places a job in a queue (a list of procedures to be run in sequence). There are many options that relate to the job environment.

? SBMJOB will give you an idea of the options available.

MIS
Last Answered: Jan 14 2009  1:50 AM GMT by MurrayInfoSys   560 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Mcl   2500 pts.  |   Jan 14 2009  5:58PM GMT

Not sure how complex it can be if you are running it from a command line.
Unless you are running commands that are interactive or just won’t run in batch a batch job may be the way to go. If it is a series of commands, you could always put it all in a CL and submit that.

Depending on your system, you might find it runs a lot quicker as a batch job.

Regards
Mike

 

Chandlerbing818   40 pts.  |   Jan 20 2009  12:44AM GMT

MIS,

SBMJOB is the answer to my problem. Thanks.

We are running RUNRMTCMD in the batch job and it will take another half an hour for the batch run to run waiting for RUNRNTCMD to complete. SBMJOB will save the half an hour.

 
0