🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #907

CommandCall

#907
From: Yamilé
Date: Thu, 05 Oct 2006 21:52
21 lines
1870 bytes
 Buenas!!!

Como hago para hace una llamada a un programa q esta en una AS400???,
recibe un parametro y devuelve un valor " String"
bueno no se como podría ejecutar esa sentencia, lo q tengo es:


AS400 sys= new AS400("as400.ibm.com");
                        CommandCall cmd = new CommandCall (sys);
---->                   cmd.run ("CALL PGM (VENTAS/VEN1200)
PARM('feCHA)")
No se cómo podria ejecutar la llamada de manera q me devuelta el
resultado OSEA UNA FECHA.  Así como lo hago se queda colgado. NO pasa
del run.

AS400Message [] listaMessaggi = cmd.getMessageList ();

for (int i = 0; i < listaMessaggi.length; ++i)
                           System.out.println(listaMessaggi[i]);

sys.disconnectService(AS400.COMMAND);
Technical Details
Message-ID: <1160085138.400318.224440@m7g2000cwm.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,e40b12a9610db69b,start
X-Google-Attributes: gid1116f3,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail
From: "Yamilé" <yamiilee@gmail.com>
Newsgroups: es.comp.lenguajes.java
Subject: CommandCall
Date: 5 Oct 2006 14:52:18 -0700
Organization: http://groups.google.com
Lines: 22
Message-ID: <1160085138.400318.224440@m7g2000cwm.googlegroups.com>
NNTP-Posting-Host: 200.90.16.4
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1160085143 22270 127.0.0.1 (5 Oct 2006 21:52:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 Oct 2006 21:52:23 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 ISASERVER2004
Complaints-To: groups-abuse@google.com
Injection-Info: m7g2000cwm.googlegroups.com; posting-host=200.90.16.4;
   posting-account=nBphTw0AAABchv641_YeWN3TpLukm4IH