b = freq_name.save(ʃfrequencies_filename ‖ report_nameʅ) ʃformatting_optionsʅ;
- If a string expression frequencies_filename is specified, the frequencies are saved to a file.
- If the name of a templated report is specified, the frequencies are saved to the report's HTML contents. This version of the function can only be called from the report's logic, or from a user-defined function. The frequency table will only be written to HTML-based reports. For the frequency table to display properties, you must include a link to the stylesheet: "/css/common.css"
- If no argument is provided, the frequency table will be saved to the file specified by the Freqs PFF attribute. If this PFF attribute is not specified, the frequency table will be saved to the listing file (if possible).
Optional
formatting options allow you to control how the frequency tables are generated. The formatting options include the following commands:
valueset,
distinct,
vset,
heading,
stat,
percentiles,
nofreq,
decimals,
sort,
nonetpercents, and
pagelength.
The function returns a logical value of 1 (true) if the frequencies are successfully saved, and 0 (false) otherwise.
Freq hh_status_freq(HH_STATUS);
forcase LISTING_DICT where FIPS = 13 do
hh_status_freq.tally();
endfor;
hh_status_freq.save("Georgia Household Status.tbw")