since you are a mimix shop, there are commands in mimix to run command on the other mimix system(s).

Look at mimix/RUNCMD or RUNCMDS if you need to run multiple commands


Vinay Gavankar wrote on 10/2/2015 9:25 AM:
Thanks everyone for the different suggestions.

Here is the complete scenario (my apologies for not mentioning this before):

System A will be running a job, which which will update 2 files. These 2
files are being MIMIXed to System B. Once the processing of job is
complete *and
the MIMIX has also completed*, the job on System A should fire off a job on
System B.

I want to make sure that MIMIX has completed the updates as there is lot of
MIMIX activity going on between the 2 systems and there can be a lag.

I was thinking of creating a new 'control' file and write the required
SBMJOB command to a record in that file from the job in System A, once its
processing is complete. The control file would be MIMIXed *in same MIMIX
group* to System B (I was told that this would ensure that this record
would update on System B only after all records updated previously on
System A have been updated on System B). On System A, I would have a
*INSERT Trigger on the control file, and the Trigger processing program
would execute whatever command is in the record.

Do you think this will work or are there any obvious flaws? I am basing
this on the information about how MIMIX works for files in the same MIMIX
Group, of which I have no personal knowledge.


On Thu, Oct 1, 2015 at 1:09 PM, Richard Schoen <
Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

If you're interested in playing with a little Java and some CL I did a
recent session on building CL system commands with Java.

One of the sample Java/CL commands runs a remote command line on any
system via JT400 and returns the results.

So you can either simply submit a remote command or wait until completion.

Example for a remote SBMJOB:

Example for a remote run command until completion:

I'm happy to send you the presentation info if interested.


Richard Schoen | Director of Document Management Technologies, HelpSystems
T: + 1 952-486-6802
RJS Software Systems | A Division of HelpSystems
Visit me on: Twitter | LinkedIn
message: 5
date: Thu, 01 Oct 2015 09:49:37 -0600
from: CRPence <crpbottle@xxxxxxxxx>
subject: Re: Submitting job on a different system

On 30-Sep-2015 19:16 -0600, Vinay Gavankar wrote:

What are the different ways to submit a job from one iseries box to
another iseries box (running the same OS version).

I was looking at SBMRMTCMD, but the Help text says it is mostly used
for managing data base files on the remote system.

I just want to issue a SBMJOB command on remote system. I don't
expect any output of that command to come back to the originating

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.