System Functions

CPL( )

Compile String

Format

CPL(statement$ [,optval$] [,ERR=stmtref])
  
Where:

statement$

String containing the statement to compile.

optval$

Optional second parameter that is ignored by the system - provided for compatibility with other BB dialects.

stmtref

Program line number or statement label to which to transfer control.

Returns

PxPlus compiled format of the statement.

Description

The CPL( ) function returns the PxPlus internal (compiled) format of the statement provided in the string argument statement$.

Example

MYSRS_IOL$=cpl("IOLIST A$,B$,C$")
read data from CUR_RECORD$ to iol=MYSRS_IOL$