Understanding Older SQR Commands

Avoid incorporating the commands covered in this topic in your SQR code. Even though they are technically supported by this release, they do not interact well with the current SQR lexicon and may cause unpredictable results. SQR may not support these commands in future releases, so you should remove these commands from your code as soon as feasible.

If your code still contains older SQR commands, refer to this table as you replace them with their updated alternatives:

Old Command

Alternative to Use Instead

BEGIN-REPORT (END-REPORT)

BEGIN-PROGRAM (END-PROGRAM)

DATE-TIME

datenow function

DECLARE PRINTER

DECLARE-PRINTER

DECLARE PROCEDURE

DECLARE-PROCEDURE

DOLLAR-SYMBOL

ALTER-LOCALE

GRAPHIC FONT

ALTER-PRINTER

MONEY-SYMBOL

ALTER-LOCALE

NO-FORMFEED

DECLARE-LAYOUT

PAGE-SIZE

DECLARE-LAYOUT

PRINTER-DEINIT

DECLARE-PRINTER

PRINTER-INIT

DECLARE-PRINTER

PRINT … CODE

PRINT … CODE-PRINTER

Note: Two older commands, DECLARE PRINTER and DECLARE PROCEDURE, do not contain hyphens. The new commands, DECLARE-PRINTER and DECLARE-PROCEDURE, contain hyphens.