Skip to content

SFMTNL

Soft Format Name List

This system variable returns a string containing a list of format names that have been soft INCLUDEd by OPEN, OPT=”LINK” or OPEN, OPT=”DLINK”.

FMTNL

This system variable is generally available starting with release level 8.8.1.

Each entry, i.e., format name, of the SFMTNL string is 8 characters long.

The format of the list is any #format names that have been soft INCLUDEd, followed by any %format names that have been soft INCLUDEd, following by any format names that have been soft INCLUDEd by OPT=DLINK. The beginning of the list of %format names will be marked by an entry of all %’s. The beginning of the list of DLINK format names will be marked by an entry of all &’s.

In the following examples, DNFFMT is the format defined in link DNLLNK and DNAFMT is an alias created from format DNFFMT.

OPEN(C,OPT=”LINK”) “DNLLNK”;
LET SF$=FMTNL

SF$ receives the value: “DNFFMT “.

OPEN(C,OPT=”LINK|ALIAS=%DNFFMT”) “DNLLNK”
LET SF$=FMTNL

SF$ receives the value: “%%%%%%%%DNFFMT “.

OPEN(C,OPT=”DLINK”) “DNLLNK”;
LET SF$=FMTNL

SF$ receives the value: “ &&&&&&&&DNFFMT “.

OPEN(C1,OPT=”DLINK”) “DNLLNK”;
OPEN(C2,OPT=”LINK|ALIAS=#DNAFMT”) “DNLLNK”
OPEN(C3,OPT=”LINK|ALIAS=%DNfFMT”) “DNLLNK”
LET SF$=FMTNL

SF$ receives the value: “ DNAFMT %%%%%%%%DNFFMT &&&&&&&&DNFFMT “.

OPEN directive

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF