Selecting variables from imported source code

You can select variable definitions from imported source code when adding information sources and application data in a capture specification.

About this task

When adding a variable data value to a capture predicate, or when adding an information source to a capture specification, rather than adding the name and format of the variable definition manually, you can import your variable definition from a COBOL copybook containing a data definition.

Procedure

  1. Click Select from imported language structure. The Choose Source Code window opens. Select your required language, choose a language structure file and click OK. Start of changeNote that there is a restriction on the length of the file name. You can import language structures only from a file with a name less than 9 characters, excluding any suffix. End of change

    After the editor has loaded the language structure, it displays any errors and warnings discovered in the language structure. These DFHPI-prefixed messages are documented as CICS messages and are shared with the CICS Web services assistant and the CICS XML assistant. If errors occur, the language structure cannot be used and the editor returns to the previous panel. If warnings occur, they are displayed. Click OK.

    If there are no errors, the Language Structure window is displayed. This window contains a tree showing the language structure. Items are indented in the tree if they are contained by a parent item. Each item has a format, offset, and length. The precision is shown for numeric items.

  2. Click the data item that you want to import in the displayed tree of data items.
  3. Click OK. The format information is filled in from the imported data item in the Information Source or Variable Data Value window.

Results

You have imported a variable data value. The next time you click Select from imported language structure, the last language structure that you specified displays automatically. If you want to import a value from a different language structure, you can click Change language structure in the Language Structure window to select another language structure.