[GLOSSARY] Section of the Job File

The [GLOSSARY] section includes any commands you want to use to define, recode, assign and/or compute new and existing variables. Using the WinCross user interface, such statements are entered using Setup|Glossary Variables. When you use Run|Tables, WinCross first reads the glossary variables and applies them to your table and banner logic.

 

Although it is permissible to leave this section blank, there must be a [GLOSSARY] section title in your job file.

 

This section appears as follows in the EXAMPLE-VARIABLE.JOB file:

 

[GLOSSARY]

* COMMENT LINE

 

* USE ASSIGN TO PUT NEW DATA INTO A FIELD

* ASSIGN VALUES FOR MALE AND FEMALE WEIGHTS

IF GENDER (1) ASSIGN WEIGHT = (1.42857)

IF GENDER (2) ASSIGN WEIGHT = (0.76923)

 

* USE RECODE TO CHANGE DATA IN A FIELD

IF RESP (17) RECODE Q1 (1=8)

 

* USE DECLARE TO CREATE A NEW VARIABLE WITH A WIDTH OF 1

DECLARE HEAVYUSER:1

IF Q1 (4-7) ASSIGN HEAVYUSER = (1)

 

* USE TEST TO FIND RESPONDENTS WITH SPECIFIC ANSWERS

* FIND RESPONDENTS WHERE Q1 = 8

TEST Q1IS8 = Q1 (8)

 

* USE DECLARE TO ADD/SUB/MULT/DIV INTO A NEW VARIABLE WITH A WIDTH OF 2

DECLARE Q6_TOT:2 = Q6A_1 A7

 

* INDEX STATEMENTS

*       I1   I2

INDEX {Q2_1,Q3_1}

INDEX {Q2_2,Q3_2}

INDEX {Q2_3,Q3_3}

INDEX {Q2_4,Q3_4}

INDEX {Q2_5,Q3_5}

INDEX {Q2_6,Q3_6}

INDEX {Q2_7,Q3_7}

INDEX {Q2_8,Q3_8}

INDEX {Q2_9,Q3_9}

INDEX {Q2_10,Q3_10}

 

There is a separate line for each glossary statement. Blank lines are ignored and are included to aid in human readability. A comment line is denoted by beginning a new line with an asterisk (*), followed by your comment.

Related topics:

Writing Specifications Using a Text Editor

View|Job File