OMS nested in SPLIT FILE command (or vice versa?)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OMS nested in SPLIT FILE command (or vice versa?)

Christian Klode

* HI LIST!.

* my aim for this procedure is to generate multiple html-output containing jpeg-charts
  separated by a grouping var.
* Q: how can one achieve to write out k groupwise html-reports within a OMS-command and
  - in addition - define as html-file-name the value labels of the grouping-variable?.
**********************************************************************************************.
define !path () 'o:\helm\temp\' !enddefine.
data list free / group        sales .
begin data
1 3
1 1
1 3
2 3
2 5
2 3
end data.
exe.
val lab group 1 'Group A' 2 'Group B'.
**********************************************************************************************.
SORT CASES BY                 group .
SPLIT FILE layered BY        group .
OMS
 /SELECT CHARTS
 /IF COMMANDS = ["Graph"]
 /DESTINATION FORMAT = HTML IMAGES = YES
        IMAGEFORMAT = JPG  CHARTSIZE = 100 OUTFILE = !path+"report.htm"
 /TAG = "Graph".
GRAPH  /BAR(SIMPLE)=COUNT BY sales .
split file off.
OMSend.
**********************************************************************************************.
*** spss-viewer shows charts seperated by grouping var.
*** the html-file contains the same charts - but in a single file.
*** how to generate multiple html-output seperated by the grouping var?.

thanx in advance,
christian & jens,
witten/herdecke university, germany