Good luck Bryce
You got me thinking. I haven't needed to use the RUNRMTCMD since we started
connecting PC's to the AS/400 (circa 1992-5 ish?). But if it works for you
that's great.
I expect we shall all be watching this space in huge anticipation ;-)
Maurice O'Prey
-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of Bryce Martin
Sent: 23 August 2012 18:53
To: .net use with the System i
Subject: Re: [SystemiDotNet] Can we pass parameter from CL or RPGLE to call
a .Net program on a windows server?
Well, being that this is a quick and dirty need and I'm already familiar
with the EXE part of things I think I will try to do it this way for now. I
don't really have the time to hit the web services learning curve at this
moment... Will need to do it soon, just not this very moment... probably in
about a couple weeks... So if I can pass the parms with RUNRMTCMD then I'll
be good. We'll see. I'm sure I'll be back here asking more questions...
stay tuned :)
Thank You
Bryce Martin
National Ticket Company
570-672-2900 ext. 226
-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of Matt Olson
Sent: Thursday, August 23, 2012 12:32 PM
To: systemidotnet@xxxxxxxxxxxx
Subject: Re: [SystemiDotNet] Can we pass parameter from CL or RPGLE to call
a .Net program on a windows server?
No I don't think you can get response data back. So a REST approach using a
standard .aspx page or .ashx (http handler) as described previously will
probably be the mechanism you require if you want results back.
-----Original Message-----
From: Richard Schoen [mailto:richard@xxxxxxxxxxxxxxx]
Sent: Thursday, August 23, 2012 11:30 AM
To: systemidotnet@xxxxxxxxxxxx
Subject: Re: [SystemiDotNet] Can we pass parameter from CL or RPGLE to call
a .Net program on a windows server?
Matt I don't believe you get any response data from STRPCCMD do you ?
We have customers doing this using our iSeries Office Integrator product
where they can call a program and receive response data back from the
command call.
If you can't purchase a product to help, I would recommend a REST approach
over calling an EXE directly as I described in my other post.
Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
----------------------------------------------------------------------
message: 1
date: Thu, 23 Aug 2012 15:01:07 +0000
from: Matt Olson <Matt.Olson@xxxxxxxx>
subject: Re: [SystemiDotNet] Can we pass parameter from CL orRPGLE
tocall a .Net program on a windows server?
Yes you can pass parameters to a .exe, we do that today at our shop to
bridge the gap between 5250 sessions and web applications. The .exe just
needs to support the input of parameters (which is easy to do in
Main() part of the .NET exe).
Example .NET program with input parameters:
static void Main(string[] args)
{
if (args.Length != 0)
{
foreach (string s in args)
{
if (s.ToUpper().Contains("/K="))
{
// do something with the K switch
}
if (s.ToUpper().Contains("/P="))
{
// do something with the P Switch
}
}
}
On the AS400 side of things it looks like this:
D IECMD C 'STRPCCMD PCCMD(''\\server\-
D myexe.exe \ARRTLaunch
/K=CallLog /P=-
D '
D IEEND S 3 INZ(''')')
-----Original Message-----
From: Bryce Martin [mailto:bmartin@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, August 23, 2012 9:40 AM
To: .net use with the System i
Subject: Re: [SystemiDotNet] Can we pass parameter from CL orRPGLE tocall a
.Net program on a windows server?
Yea, I'm already using the RUNRMTCMD to do a tax update procedure right now.
But I'm not passing any parameters for that. Its just a batch type process
that runs. I'd like to do something similar but be able to pass a parameter
or list of parameters to the executable... not sure if that is possible
using RUNMRMTCMD (I know that executables can use args from command lines,
but not sure if this can be done from that command... will look at it
more..)
Thank You
Bryce Martin
National Ticket Company
570-672-2900 ext. 226
--
This is the .net use with the System i (SystemiDotNet) mailing list To post
a message email: SystemiDotNet@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/systemidotnet
or email: SystemiDotNet-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/systemidotnet.
--
This is the .net use with the System i (SystemiDotNet) mailing list To post
a message email: SystemiDotNet@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/systemidotnet
or email: SystemiDotNet-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/systemidotnet.
--
This is the .net use with the System i (SystemiDotNet) mailing list To post
a message email: SystemiDotNet@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/systemidotnet
or email: SystemiDotNet-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/systemidotnet.
As an Amazon Associate we earn from qualifying purchases.