Keyword Codes
The Keyword Codes question type uses 40 some functional commands in the question text. This question type performs machine operations that are not encountered by the interviewer. Each command has its own distinct syntax. The commands are listed below in alphabetical order with a brief explanation and a page number where a complete explanation, syntax, and examples can be found. Click on the desired command to jump to its explanation.
List of Keyword Codes
|
Keyword |
Description |
| APPEND TO FILE | Append symbol contents to a designated file. |
| APPEND TO ROSTER | Append records to a roster matching an expression. |
| BLANK | Blank out one or more sections of the Save Array code. |
| CHECK | Check for a non-blank character in a string. Opposite of EMPTY. |
| CLEAN ROSTER | Delete everything in a roster. |
| CLONE | Create an exact duplicate of a roster. |
| CODE | Convert a character string into the corresponding code. |
| COMPRESS ROSTER | Compress lines out of a roster if a field is blank. |
| COUNT | Count number of occurrences of a token in a range of the Save Array. |
| CREATE DCODE | Create a Pick List record from a file. |
| DECODE | Convert a code into a corresponding character string. |
| DELETE DCODE | Delete a Pick List record in the Pick List database. |
| DELETE LINES FROM ROSTER | Delete rows (records) from a roster. |
| EMPTY | Check for a blank character in a string in the Save Array. |
| EXECDOS | Pass control to a DOS program. Do not return automatically to Windows when finished. |
| EXECWINDOWS | Pass control to a Windows program, wait, return when finished. |
| EXPAND | Expand multiple Select Option responses in Save Array. |
| GET VALUE FROM CODEALL | Get an option selected in a Code All that Apply. |
| INFOSHEET | Create items on an information sheet. |
| INLIST | Find if an encrypted answer to code all that apply. |
| INPATH | Check for occurrence of question name(s) in the path. |
| INSTRING | Check for occurrence of target string in source string. |
| LOCATE RECORD | Search external file for a record and copy it contents |
| MAX | Find if the maximum number is a range of the Save Array. |
| MIN | Find if the minimum number is a range of the Save Array. |
| Print a string with substitutions made in it. | |
| READ | Read contents of file or portion thereof into Save Array location. |
| RECCOUNT | Count the number of records in a roster. |
| REPEAT | Initiate a loop of questions. |
| SET LANGUAGE | Set prompt and questionnaire language. |
| SET NAME | Specify screen display header. |
| SET ROSTER FIELD VALUE | Set a roster field to a constant value in all rows |
| SET SOUND | Enable or disable the sound. |
| SORTROSTER | Sort fields in roster by a key. |
| STRCMP | Compare two strings, or part of them. Not case-sensitive. |
| SUBSTR | Extract a substring from an existing Save Array string. |
| SWITCH | Select one of several alternative answers based on condition. |
| SYMBOL | Initialize symbols in the Save Array. |
| SYMBOLEXIST | Verify the existence of a symbol up to current point in survey. |
| TIME | Return current time from clock, other functions. |
| TOTALINLIST | Return total number of options in a select option. |
| UNTIL | Terminate a loop of questions. |
| WEEKLYWAGE | Calculate a weekly pay rate from another pay rate. |
| WRITE | Write contents of Save Array location into a file or portion thereof. |
| XFER | Transfer a roster field(s) from or to the Save Array. |