Walks you through the process of creating an
Enterprise Developer project, adding PL/I source, and then
running the resulting application.
Create a project
- In Eclipse on the
Application Explorer view, expand the
Enterprise Developer system.
- Right-click
Enterprise Development Projects and select
New PL/I Project > PL/I Project from the context menu.
- 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.
- Click
Finish.
Add a source file
You need to create a program in your project to hold the PL/I source code:
- 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.
- In the
New file name field type
HelloPLIWorld.pli.
- Click
Finish.
This adds a template PL/I file to your project and opens it in the editor.
- 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;
- Click
File > Save.
Eclipse builds your project. The progress of the project build is displayed in the
Console view.
- 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
- From the main menu, click
Run > Run.
This opens a console window with
Hello PL/I World! printed in it.
- Press any key to close the console.