_label Utility - Convert Line Numbers to Line Labels

Syntax

call "_label",inpgm$,outpgm$,errmsg$,always_create

Description

The _label utility scans a tokenized PRO/5 program for all line number references, converts them to line label references, and generates line labels as necessary. The utility writes the output to a separate program file.

Argument

Description

inpgm$

Name of the source program. It will not be modified in any way.

outpgm$

Output (target) program. If it exists, it will be erased.

errmsg$

  • Returned as "" if outpgm$ was created correctly.

  • Returned as "OK" if no conversions were necessary and outpgm$ was not created.

  • Returned as an error message if a problem was encountered.

always_create

If 0: Do not create outpgm$ if there are no line labels to convert.

If 1: Create outpgm$ even if there are no line labels to convert.

See Also

Alphabetical Utilities

Functional Listing of Utilities