OMS
Routes selected output (tables, texts, warnings, logs, charts) of the commands that follow to a dataset or a file, optionally hiding it from the viewer.
Syntax
Section titled “Syntax”OMS [/SELECT TABLES TEXTS WARNINGS LOGS CHARTS | ALL] [/IF COMMANDS=['name' …] SUBTYPES=['table title' …] LABELS=['exact title' …]] /DESTINATION FORMAT=SAV|CSV|XLSX|HTML|TEXT|DOCX|PDF|ODT|MD|PPTX|JSON OUTFILE='file' | OUTFILE=dataset [VIEWER=YES|NO] [/TAG='name'].Synopsis
Section titled “Synopsis”| Kind | Session |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /DESTINATION, /IF, /SELECT, /TAG |
Specifications
Section titled “Specifications”- SELECT: kinds of output to capture (default TABLES)
- IF: COMMANDS matches command names, SUBTYPES table titles ignoring case and spaces, LABELS exact titles; all given conditions must hold
- DESTINATION: FORMAT and OUTFILE; with FORMAT=SAV, an unquoted name opens a new dataset. VIEWER=NO removes captured items from the viewer
- TAG: a name for the request, used by OMSEND
Examples
Section titled “Examples”OMS /SELECT TABLES /IF COMMANDS=['REGRESSION'] SUBTYPES=['Coefficients'] /DESTINATION FORMAT=SAV OUTFILE=coefs VIEWER=NO /TAG='coef'.REGRESSION /DEPENDENT=y /METHOD=ENTER x1 x2.OMSEND TAG=['coef'].OMS /SELECT ALL /DESTINATION FORMAT=XLSX OUTFILE='~/Desktop/run.xlsx'.- Nothing is written until OMSEND. A table becomes one case per row with Command_, Subtype_, Label_ and Var1 (the row label) followed by one variable per column.
Related
Section titled “Related”OMSEND, OMSINFO, OUTPUT EXPORT
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.