NetRPG icon indicating copy to clipboard operation
NetRPG copied to clipboard

Implement CALL operation

Open szsascha opened this issue 6 years ago • 5 comments

The implementation of the CALL operation can be very useful. CALL should be not only accessible from RPG code. Executing the CALL operation from C# can be really useful too. For example to call RPG programs for testing. (See #19)

szsascha avatar Aug 31 '19 11:08 szsascha

@SaschaS93 Can you give me an example of what you would like the method to look like? Then I will see if I can have a go at looking at it.

worksofliam avatar Sep 04 '19 19:09 worksofliam

Just an idea and some pseudo code...

RPGProgram tstpgm01 = RPGProgramFactory.create("tstpgm01.rpgle");
tstpgm01.addArgument("First argument");
tstpgm01.addArgument(2);
tstpgm01.addArgument("And some more aguments...")

string result = tstpgm01.call();

I don't know how *entry plist works in free but I assume that the tstpgm01.rpgle needs a PI with 3 parameters. First a char, second an int and third a char again.

szsascha avatar Sep 04 '19 19:09 szsascha

@SaschaS93 I can take a look at getting this implemented today! I have an idea :)

worksofliam avatar Sep 17 '19 15:09 worksofliam

Nice that you are working again on NetRPG :)

Why did you label this issue with "help wanted"? What was your last idea on it?

szsascha avatar Oct 02 '19 19:10 szsascha

I just think this is something that someone else could tackle while I work on some more of the display file stuff :)

worksofliam avatar Oct 02 '19 19:10 worksofliam