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:
- An existing file that was previously generated by the Program Call wizard
- A file that you created
- A file that was generated by the ILE RPG compiler or the ILE COBOL compiler
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:
- In the Remote System Explorer, right-click the source member corresponding
to your .PGM object.
- Select .
- In the left pane, click PCML.
- Select Generate program interface. This specifies
that program interface information should be generated into a stream file
after you run the verify command.
- In the File field, specify the path and the file
name for the PCML file.
- Select the appropriate radio button for PCML generation.
- Click OK. A PCML file is generated in the path
you specified.
To import a PCML file or generate directly from source:
- Click Import.
- 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.
- 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:
- Right-click on the connection where your source member resides.
- Select Properties.
- In the left pane, select Subsystems .
- Tab to iSeries commands.
- Add the required libraries to your library list.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.