A simple COBOL application on a remote system
This sample guides you through the process of building, and running a simple COBOL application on a remote system. The sample contains two simple COBOL files. The programs request input through a command-line interface and writes back a response.
This sample leads you through the following tasks:
- Create a remote project from a sample shipped with Developer for z/OS®
- Allocate a partitioned data set, create a z/OS project
- Build executable code from COBOL source
- Run an application on the remote system
Note: This sample requires a connection to the host system.
Make sure that the z/OS Build and Remote System Explorer
servers are configured and started. You also need a connection to the z/OS host system defined in your workspace. To create the connection, the
following connection information is needed from your system administrator.
- The name or TCP/IP address of the host system.
- The port number for the connection.
- The method used in your environment to launch the server and information. The information that is needed is different based on the method. See Connecting to a z/OS system for the specific information needed and instructions on creating a host connection
Import the sample code
Before you begin
Make sure that the z/OS Build and Remote System Explorer servers are configured and started and you are connected to the host system.
About this task
Data set name | Category | Type |
---|---|---|
<HLQ>.REMOTE.COBOL | SOURCE | COBOL |
<HLQ>.COBOL.OUTPUT* | LISTING | COBOL |
<HLQ>.COBOL.SYSDEBUG* | LISTING | COBOL |
<HLQ>.COBOBJS.OBJ* | SOURCE | COBOL |
<HLQ>.COBOL.COPYLIB* | SOURCE | COBOL |
Note: The data sets marked with an asterisk (*) are required
by the COBOL step of the ELAXFCOC procedure described in a later step.
The data set names must match the data set names referred to in the
COBOL step options.
Procedure
Work with the sample code
About this task
You are now ready to create the z/OS Project and MVS subproject, create a property group, and set the build options.