Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Step 5: Running the Sample Program

Run the Java - PL/I sample program with this command:

   java jPassString

The output of the sample program, complete with the prompts for user input from both Java and PL/I, will look like this:

 >java jPassString

 From Java: Enter a string or 'quit' to quit.
 Java Prompt > A string entered in Java

 From  PLI: String retrieved from Java is: A string entered in Java
 From  PLI: Enter a string to be returned to Java:
 A string entered in PL/I

 From Java: String set by PL/I is: A string entered in PL/I
 From Java: Enter a string or 'quit' to quit.
 Java Prompt > quit
 >

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)