Importing a PCML file

Use the Import PCML option in the Program Call wizard to import an existing PCML file, or to import a PCML file generated directly from ILE RPG or ILE COBOL source code.

You can import one or more programs or structures from one of these PCML files: You can now use the ILE RPG or ILE COBOL program verifier to generate a PCML file.

To generate a PCML file using program verifiers:

  1. In the Remote System Explorer, right-click the source member corresponding to your .PGM object.
  2. Select Verify (Prompt).
  3. In the left pane, click PCML.
  4. Select Generate program interface. This specifies that program interface information should be generated into a stream file after you run the verify command.
  5. In the File field, specify the path and the file name for the PCML file.
  6. Select the appropriate radio button for PCML generation.
  7. Click OK. A PCML file is generated in the path you specified.
To import a PCML file or generate directly from source:
  1. Click Import.
  2. In the Select PCML file from field, choose Workspace or Remote/Local File System
    • Click Workspace to open the Workspace File Selection window. Select a PCML, ILE RPG, or ILE COBOL file from your workspace.
    • Click Remote/Local File System to open the Browse For File window. Select a PCML, ILE RPG, or ILE COBOL file from your remote or local file system.
  3. Click OK to import the selected items into your current program call definitions. A tree view of the PCML file is shown in the right pane. You can select one or more structures and programs in the left pane.

    If the name of an imported item conflicts with the name of an existing item in the current program call definitions, the wizard automatically renames the imported item. You can rename it manually after import. If the selected item requires a structure, the wizard also imports the required structure.

    The default location for this temporary generated PCML file is in the metadata directory.

If the source file is selected, program verifiers are used to generate the PCML file. It is quite possible that a PCML file will not be generated if an error occurs during program verification. In this case, no PCML file will be imported.

Program verifiers assume that your library list has all the libraries required by the COBOL or RPG source. To add a library in your library list:
  1. Right-click on the connection where your source member resides.
  2. Select Properties.
  3. In the left pane, select Subsystems .
  4. Tab to iSeries commands.
  5. Add the required libraries to your library list.
Related tasks
Calling an iSeries program from your Java application
Related reference
Preferences: Program Verifiers - ILE RPG - PCML
Preferences: Program Verifiers - ILE COBOL - PCML