Set Up the HelloPLIWorld Project

Walks you through the process of creating an Enterprise Developer project, adding PL/I source, and then running the resulting application.

Create a project

  1. In Eclipse on the Application Explorer view, expand the Enterprise Developer system.
  2. Right-click Enterprise Development Projects and select New PL/I Project > PL/I Project from the context menu.
  3. Type HelloPLIWorld into the Project Name field.

    The default location for storing new projects is the workspace you specified when you started Eclipse. If you wanted to change this, you could uncheck Use default location and specify a different location; however, you use the default location in this tutorial.

  4. Click Finish.

Add a source file

You need to create a program in your project to hold the PL/I source code:

  1. In the Application Explorer view, right-click the HelloPLIWorld project, and then select New > File > PL/I Program from the context menu.

    The New PL/I Source File wizard is displayed.

  2. In the New file name field type HelloPLIWorld.pli.
  3. Click Finish.

    This adds a template PL/I file to your project and opens it in the editor.

  4. Copy and paste the following code into the editor, overwriting the existing text:
    HelloPLIWorld: proc options (main);
      put skip list("Hello PL/I World!");
    end HelloPLIWorld;
  5. Click File > Save.

    Eclipse builds your project. The progress of the project build is displayed in the Console view.

  6. In the Application Explorer view, expand HelloPLIWorld > New_Configuration.bin to see the generated build files.

You can now run the application.

Run Hello PL/I World

  1. From the main menu, click Run > Run.

    This opens a console window with Hello PL/I World! printed in it.

  2. Press any key to close the console.