These are two of my favorite CL feedback methods when I want to call a Java class and use it without involving RPG.
Data area. Use JT400 and the data area class.
Capture STDOUT to a physical file or IFS file. Then your feedback can all be formatted and sent back with System.out.println("ORDER:123")
You can also use System.exit(x) where x is a number to send back a numeric return code that can be picked up in the java message stack.
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
-----Original Message-----
message: 1
date: Tue, 18 Jan 2011 15:07:30 -0500
from: Jason Abreu <jason.abreu@xxxxxxxxxxxxxxxxxxxx>
subject: Java class return data to calling CL program
How would you return a value from an executable Java class to a CL program?
--
Jason Abreu
Abreu Innovations, Inc.
jason.abreu@xxxxxxxxxxxxxxxxxxxx
http://www.abreuinnovations.com/
As an Amazon Associate we earn from qualifying purchases.