Prepare the CICS Solution

Walks you through the process of opening the existing CICS solution in Visual Studio, and reviewing its configuration.

Open the CICS Solution

  1. In Visual Studio, click File > Open > Project/Solution.
  2. Browse to the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\PLI-VS\CICSDEMO\CICS folder, select the CICS.sln file, and then click Open.

    This loads the CICS solution into the Solution Explorer.

Configure the CICS solution

  1. In the Solution Explorer, right-click the CICS solution, and then select Configuration Manager from the context menu.
  2. In the Configuration Manager dialog box, set the Active solution platform to x86 and then click Close.

Review CICS project properties

  1. Right-click the CICS project in the Solution Explorer, and select Properties from the context menu.
  2. Click the tabs in the left side of the Properties window to view all of the configuration details:
    • On the Application tab, you can see that the project is set to generate .dll files as output.
    • On the Dependency Paths tab, the path to your CICS-Includes project is listed.
    • On the PL/I tab, ensure Platform Target is set to Active (x86).

      You can see that the build is set to produce the output files (check the Output Path field) in the bin\Debug\ subfolder in the project directory. The CICS and Macro preprocessors are enabled and various Compiler directives and options are set.

    • On the PL/I Link tab, you can see that the project links the executables to a subroutines.lib file which is produced by the Subroutines project in your solution.

Review Subroutines project properties

  1. Right-click the Subroutines project in the Solution Explorer, and select Properties.
  2. Click the tabs in the left side of the Properties window to view all of the configuration details:
    • On the Application tab, you can see that the project produces a single .lib file.
    • On the Dependency Paths tab, you can see that the project searches for PL/I include files in the path for your CICS-Includes project.
    • On the PL/I tab, ensure Platform is set to Active (x86).

      You can see that the build is set to produce the output files (check the Output Path field) in the bin\Debug\ subfolder in the project directory.

    • The PL/I Link tab shows that the project does not link to any other files.

Compile and link the programs

  • Click Build > Build Solution.