|
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:
IBMISAMP2 CMDLINE('SBMJOB CMD(REMOTECMD) JOB(REMOTECMD)')
HOST('1.1.1.1')
USER('rmtuser')
PASS()
DLTSTDOUT(*NO)
PRTSTDOUT(*YES)
Example for a remote run command until completion:
IBMISAMP2 CMDLINE('REMOTECMDLINE')
HOST('1.1.1.1')
USER('rmtuser')
PASS()
DLTSTDOUT(*NO)
PRTSTDOUT(*YES)
I'm happy to send you the presentation info if interested.
Regards,
Richard Schoen | Director of Document Management Technologies, HelpSystems
T: + 1 952-486-6802
RJS Software Systems | A Division of HelpSystems
richard.schoen@xxxxxxxxxxxxxxx
www.rjssoftware.com
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
system
--
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,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com 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.