|
I have this service running on the PC:
C:\WINDOWS\CWBRXD.EXE
When I change the CLP to execute RUNRMTCMD, ir appears to run but there
is no file created, and no errors noted.
Thanks for your patience.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Wednesday, October 15, 2008 9:32 AM
To: Midrange Systems Technical Discussion
Subject: Re: Run a .dtf from CLP
If you want to send remote commands from a batch job, try RUNRMTCMD.
However, you'll have to either know ahead of time, or run a program to
determine the name/ip address of the PC to send the command to.
Also, you need to turn on the "iSeries Access Remote Command" windows
service on the PC.
HTH,
Charles
On Wed, Oct 15, 2008 at 10:29 AM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:
The STRPCCMD sends a specially formatted screen to the emulator to tell it to run a particular command.<dcavaiani@xxxxxxxxxxxxx> wrote:
So why would you think this would work in batch? Obviously it can't given its dependence on a 5250 session.
Charles
On Wed, Oct 15, 2008 at 9:55 AM, Don Cavaiani
all.Got it to run interactively with these commands:
STRPCO
MONMSG MSGID(IWS4010)
STRPCCMD PCCMD('rtopcb.exe c:\qkeep3.dtf')
But, cannot submit it to batch as then get this error msg.
Command STRPCO not allowed in this setting.
Error found on STRPCO command.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Evan Harris
Sent: Wednesday, October 15, 2008 6:04 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Run a .dtf from CLP
Hi Don
When I used to run these in batch files I used to use the RTOPCB command (not sure if that dates me or not...) Don't know if that's still current or there is a new command.
To be honest, I wouldn't have expected that batch file to work at
surprised me.Double clicking on a file with a file association might run the associated programs but I didn't think that extended to running them in batch. But it wouldn't be the first time that windows has
RMTLOCNAME('192.168.0.173'Is the .dtf file really in the root ?
Regards
Evan Harris
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Wednesday, 15 October 2008 11:37 p.m.
To: Midrange Systems Technical Discussion
Subject: RE: Run a .dtf from CLP
cwblogon 192.168.0.9 /u DCA /p xxxx
c:\qkeep3.dtf
Above is the content of the .bat file. This runs fine when I run it straight from the PC side.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Evan Harris
Sent: Tuesday, October 14, 2008 7:39 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Run a .dtf from CLP
Hi Don
Pipe the batch file output to a log file so you can see what the batch file is doing. For example:
RUNRMTCMD CMD('START C:\QKEEP3.BAT > C:\QKEEP3.LOG') RMTLOCNAME('192.168.0.173' *IP) RMTUSER(DCAVAIANI) RMTPWD()
Regards
Evan Harris
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Wednesday, 15 October 2008 1:09 p.m.
To: Midrange Systems Technical Discussion
Subject: RE: Run a .dtf from CLP
I have CWBRXD.EXE running on the PC, and the job lob shows the below message, yet there is no update to he file which the .dtf (in the .BAT
file) should be creating? NO error messages - job appears to end normally?
3200 - RUNRMTCMD CMD('START C:\QKEEP3.BAT')
*IP) RMTUSER(DCAVAIANI) RMTPWD()
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Tuesday, October 14, 2008 11:38 AM
To: Midrange Systems Technical Discussion
Subject: Re: Run a .dtf from CLP
As others have mentioned, you have to have the "iSeries Access for Windows Remote Command" windows service running. Actually, any REXC client server will do.
Also, given that you're trying to perform a file transfer with, note that you'll have to place the transfer request in a .BAT file so that
you can use CWBLOGON command to log onto the iSeries before performing the transfer.
HTH,
Charles
On Tue, Oct 14, 2008 at 11:14 AM, Don Cavaiani <dcavaiani@xxxxxxxxxxxxx>
wrote:
Cannot get past this error message:the different options. Does a certain job need to be running (and kept
" A remote host refused an attempted connect operation. " I tried all
active) on the PC?
Also, do I need the CMD string to include C:\programfiles\ibm\client access\cwbtf.exe ??
Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063
"It's amazing what you can accomplish if you don't care who gets the
credit." Harry S. Truman
--
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
http://archive.midrange.com/midrange-l.a moment to review the archives at
--
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.
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-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.