<< Click to Display Table of Contents >> Navigation: User guide > Script > Tables stage (in first CL script) |
start tables,
!
%jh='Example tables',
f=lpp46/spl120/psv/clw6/urh/uch,
!
t #1=$q1*$sex,
t #2=$q2*$sex,
t #3=$sq3*$sex,
t #4=$sq4*$sex,
!
finish tables,
This starts with a special (job header) which contains the text to use at the top of each page.
Next is a F (format) command which tells CL various things about how to create the tables. The first two formats set the page size. The next causes score values to appear as in table 1. The next sets the column text width. The last two cause the underlining of the headers.
The four T (tabulate) commands tell CL to generate tables. Each command names the variables to be used for the rows (down the side) and the columns (across the top).
Tables can be produced for a subset of the data using an IF command. To create a fifth table which is identical to table 4 but only includes the 24 men in the table we can:
if $sex/1, t #5=$sq4*$sex,
bt='All men',
or for a lot of tables on the same subset:
if $sex/1, then,
global bt#='All men',
t #5=$sq4*$sex,
...
endif,