To run a remote command on your default system, enter the command
like this:

rmtcmd sndmsg HelloWorld qsysopr

If you want that command to run on some other system, you must
end with a " // system-name-qualifier".

rmtcmd sndmsg HelloWorld qsysopr // other400

Hope this helps

jte

--
John Earl
johnearl@powertechgroup.com
The Powertech Group          www.powertechgroup.com
Kent, Washington, USA       +1 253-872-7788


----- Original Message -----
From: Brad McDaniel <BMCDANIEL@ABSBC.ORG>
To: <midrange-l@midrange.com>
Sent: Friday, December 07, 2001 12:55 PM
Subject: RMTCMD Parameters


> This message is in MIME format. Since your mail reader does not
understand
> this format, some or all of this message may not be legible.
> --
> [ Picked text/plain from multipart/alternative ]
> I am trying to run a command from my PC on the 400, but it
connects as a
> default to the wrong system.  How do I the command to connect
to a specific
> system.
>
> Example:  Here's what I have in a .bat file:
> rmtcmd STRQMQRY QMQRY(TRANSQA/CREATTABLE)
>
> Example:  Here's what I get when I run it:
>
> C:\Documents and Settings\userid\Desktop>rmtcmd STRQMQRY
> QMQRY(TRANSQA/CREATTA
> BLE)
>
> IBM AS/400 Client Access Express for Windows
> Version 4  Release 4  Level 0
> Submit Remote Command
> (C) Copyright IBM Corporation and Others 1984, 1995.  All
rights reserved.
> U.S. Government Users Restricted Rights - Use, duplication or
disclosure
>   restricted by GSA ADP Schedule Contract with IBM Corp.
> Licensed Materials - Property of IBM
>
> The remote system name is PROD.
> QWM2701 - STRQMQRY command failed.
>
> C:\Documents and Settings\userid\Desktop>pause
> Press any key to continue . . .
>
>
> I want it to say "The remote system is TEST".
>
> Brad McDaniel
> Programmer Analyst
> Annuity Board, SBC
> 214-720-6546
>
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> 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 thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.