This tutorial demonstrates the basics of how to use Visual Studio to create a simple PL/I application, your first "Hello PL/I World" application.
You start by creating a Visual Studio project which is the container for your source code:
This creates a solution and a project from the available templates in the specified location and opens them in Solution Explorer in Visual Studio.
The IDE creates a project with a template PL/I program. To demonstrate how you add files to a project, you'll delete this template file and add a new one:
This adds a template PL/I file to your project and opens it in the editor.
HelloWorld: proc options (main); put skip list("Hello PL/I World!"); end HelloWorld;
You can verify now that your project compiles cleanly.
The progress of the build is displayed in the Output view. There should be no errors in the build.
You can now run the application.
To run the application:
This opens a console window with Hello PL/I World! printed in it.
Preserve this project because you are going to use it again for other demonstrations.
Continue with the next tutorial, Debug the Hello PL/I World Application, which demonstrates how to debug PL/I code in Visual Studio.