|
Adam, Here's the sample PROGRAM in CL. Surely you have a CL compiler. PGM PARM(&FIRSTNUM &SECONDNUM &SUM &RETCOMMENT) DCL VAR(&FIRSTNUM) TYPE(*CHAR) LEN(6) DCL VAR(&SECONDNUM) TYPE(*DEC) LEN(9 2) DCL VAR(&SUM) TYPE(*DEC) LEN(9 2) DCL VAR(&RETCOMMENT) TYPE(*CHAR) LEN(20) DCL VAR(&COMMENT) TYPE(*CHAR) LEN(20) + VALUE('Cool from CL, too.') DCL VAR(&WORKNUM) TYPE(*DEC) LEN(6) CHGVAR VAR(&WORKNUM) VALUE(&FIRSTNUM) CHGVAR VAR(&SUM) VALUE(&WORKNUM + &SECONDNUM) CHGVAR VAR(&RETCOMMENT) VALUE(&COMMENT) ENDPGM Don't forget to update the PCML to point to the library where the compiled CL program (*PGM object) will reside. -Marty ------------------------------ date: Tue, 6 Jun 2006 16:16:55 -0400 from: "Adam L" <raider.adam@xxxxxxxxx> subject: Experimenting with JTOpen toolbox Hello everyone. I am experimenting with ways to run iSeries commands from a remote Java program (program is on windows desktop and controlling iSeries functionality from it). What I started working with was the following: http://www.itjungle.com/mpo/mpo011702-story04.html Unfortunately I do not have an RPG compiler on the system for the example pgm code. If the program is rewritten in C, it should suffice just as well, correct? (I have access to an ILE C compiler.) Also, any pointers or leads to help out my educational discovery for this task, especially witht he PCML document?
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.