Generating Labels with a Proc

Generate labels with a Proc that contains a LIST-LABEL or SORT-LABEL command. Procs allow the execution of lengthy INFO/ACCESS statements simply by entering one command. They may also supply responses to prompts, so the user doesn’t have to enter all the information required by the ? prompt each time a set of labels is run off.

The labels generated by the SORT-LABEL command discussed in the previous topic may also be generated by the following Proc, called LABELS:

001 PQ

002 HSORT-LABEL CUSTOMERS BY LAST-NAME FULL-NAME STREET CITY-ST ZIP (IC)

003 STON

004 H3,4,2,8,18,4<

005 HNAME<

006 HST<

007 HCITY<

008 HZIP

009 P

When the SORT-LABEL statement in line 2 is executed, the Proc supplies the label format (line 4) and all necessary responses to the ? prompt (lines 5, 6, 7, and 8). Simply type the command LABELS command to produce the labels shown in the previous example.

See Also

Printing Labels

LIST-LABEL Syntax

Defining a Label Format