Formatting Escapes: Record escapes

%d - substitute a data value from a record in an SQL query
%h - substitute the column heading from an SQL query
%n(...%) - include text only if a data value is not NULL
%[!...%] - include text only when data differs from the previous record
%n[@...%] - store a data value to a file
%n[^...%] - include text every nth line