Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Step 3: Writing the PL/I Program

All of the information about writing the PL/I "Hello World" sample program applies to this program as well.

Correct Form of PL/I Procedure Name and Procedure Statement

The external PL/I procedure name for this program would be _Java_jPassInt_pliShowInt.

The complete procedure statement for the sample program looks like this:

  Java_passNum_pliShowInt:
  Proc( JNIEnv , myjobject )
    external( "_Java_jPassInt_pliShowInt" )
    options( byvalue nodescriptor linkage(stdcall) );

JNI Include File

The PL/I include file which contains the PL/I definition of the Java interfaces is contained in two include files, jni.cop which in turn includes jni_md.cop. These include files are included with this statement:

   %include jni;

For a complete listing of the jni.cop file look in the \ibmpliw\include directory

Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide