As explained in the
previous example, the LASR procedure can use any format so long as
the format is in the format catalog search order. The procedure automatically
converts the format information to XML and transfers it to the server
with the data. However, if the same formats are used many times, it
is more efficient to convert the formats to XML manually and use the
FMTLIBXML= option.
You can use the FORMAT
procedure to write formats to an XML fileref. Then, you can reference
the fileref in the FMTLIBXML= option each time you use the LASR procedure
to load tables. This improves performance because the conversion to
XML occurs once rather than each time LASR procedure transfers the
data.
Formats are created
with the FORMAT procedure. The following SAS statements show a simple
example of creating a format and using the XML fileref in the LASR
procedure.