ROWID host variables in PL/I applications that use SQL

PL/I does not have a variable that corresponds to the SQL data type ROWID. To create host variables that can be used with this data type, use the SQL TYPE IS clause. The SQL precompiler replaces this declaration with a PL/I language structure in the output source member.

ROWID

Read syntax diagramSkip visual syntax diagram
>>-+-DECLARE-+--+-variable-name-----------+--------------------->
   '-DCL-----'  |    .-,-------------.    |   
                |    V               |    |   
                '-(----variable-name-+--)-'   

>--SQL TYPE IS ROWID-------------------------------------------><

Note: SQL TYPE IS ROWID can be in mixed case.

ROWID Example

The following declaration:

DCL MY_ROWID SQL TYPE IS ROWID;

Results in the following generation:

DCL MY_ROWID CHARACTER(40) VARYING;