NIPO ODIN Version 5.17
*EXCLUDE
Purpose
Data manipulation.
Syntax
*EXCLUDE <Qn> <Qm|[expression]|[range]>
Description
This command is also allowed under condition. With this command it is possible to remove one or more answer codes from the receiving data field.
Arguments
Qn The question reference of the data field where the process takes place.
Qm All answers of this question will be removed from the specified data field.
expression The result of the expression will represent a code value. Next this code will be removed from the data field.
range You may now also specify more than one code, separated by semicolons, that should be excluded from the question. Use TO to specify a range.
Remarks
Contrary to *COPY and *INCLUDE , the *EXCLUDE command is used for both single-coded and multiple questions. When a question did not contain the code that was excluded, nothing changes.
Example 1
*QUESTION 1 *CODES 71L10 *MULTI *EXCLUDE Q1 [3] *EXCLUDE Q1 [4] *EXCLUDE Q1 [5] *EXCLUDE Q1 [7]
If Q1 contained codes 2, 3, 4, 5, 6 and 7, it would now contain only code 2 and 6.
This can also be specified as:
*EXCLUDE Q1 [3;4;5;7]
or as:
*EXCLUDE Q1 [3 TO 5;7]
Note: Do not separate codes with commas. Use a range with TO or use semicolons ‘; ’ to specify more than one code.
Example 2
*QUESTION 1 *CODES 71L10 *MULTI *QUESTION 2 *CODES 81L10 *MULTI *EXCLUDE Q1 Q2
If Q1 contains the codes 2, 3, 4 and 7, and Q2 contains codes 2, 7, and 9, Q1 will end up with codes 3 and 4. Question 2 remains unchanged.
Example 3
*QUESTION 1 *CODES 136L7 *MULTI *EXCLUDE Q1 Q1
This effectively clears all answers in Q1.
|