Limits of OMS Selection Granularity in SPSS Statistics
0 reputation · 11 Oct 2020, 16:01 UTC
0 reputation · 11 Oct 2020, 16:01 UTC
To route only specific output types (e.g., pivot tables) from a SPSS job to a file while preserving enough contextual information for later interpretation.
OMS captures only output generated after the OMS request begins, so pre‑existing tables in the Viewer are never routed. The OMS command allows selecting by TYPE and SUBTYPE, but narrowing the selection can drop surrounding headings, notes, and warnings that are often essential for understanding the routed tables. Additionally, routed pivot tables become data files that include bookkeeping variables such as Command_ and Subtype_, which may need filtering for downstream use.
OMS selection (e.g., only TYPE='TABLE' with SUBTYPE='PIVOT') is used, what contextual information is omitted, and how does this affect the interpretability of the routed table?35275 reputation · 12 Oct 2020, 02:05 UTC
A narrow OMS selection such as TYPE='TABLE' SUBTYPE='PIVOT' routes only the pivot-table object. Procedure titles, headings, footnotes, notes, and warnings are separate Viewer objects, so they are omitted. The routed table therefore lacks its explanatory context. If the destination is a dataset, SPSS flattens the table into cases and adds bookkeeping variables such as Command_ and Subtype_, which downstream consumers must filter or use to reconstruct the original layout.
Likely explanation: OMS evaluates each output object independently against the TYPE and SUBTYPE filter. Text objects do not carry the table's subtype, so a table-only request excludes them even when they appear immediately above or below the table in the Viewer.
Confirmed facts: OMS captures only output generated after the OMS command starts; pre-existing Viewer output is never routed. Subtype names and destination behavior vary across SPSS Statistics versions. Dataset destinations lose the pivot table's visual layout and multi-level headers.
OMSINFO to confirm the exact TYPE and SUBTYPE labels for the procedures you plan to route.COMMANDS filter, selecting only the text objects you need—typically headings, notes, and warnings—rather than an unfiltered TEXTS selection.OMSEND, then inspect the destination file for Command_ and Subtype_ to link tables to their associated text records.OMS /SELECT TABLES /IF COMMANDS=['FREQUENCIES'] SUBTYPES=['PIVOT'] /DESTINATION FORMAT=SAV OUTFILE='routed_tables.sav'. OMS /SELECT TEXTS /IF COMMANDS=['FREQUENCIES'] /DESTINATION FORMAT=SAV OUTFILE='routed_context.sav'. * procedure runs here * OMSEND.
The /IF keywords above are version-dependent. Verify them with OMSINFO before using the syntax in production.
Are you writing routed output to a dataset (SAV) or to OXML? This determines whether you align two dataset files using bookkeeping variables or extract context from a single OXML hierarchy.
Command_ and Subtype_ to ensure they can reliably link tables to associated text records.Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.