Editing in Batch Edit
Posted: April 6th, 2023, 7:19 am
Hi can anyone help me with my code
item Apple
len = 6
Apple has valuesets from A to E
Value of Apple = AHBZC
do numeric i = 1 while i<=6
if !Apple[i:1] in valuesets then
impute(Apple,); /// How can i remove the answers that is not in the valuesets? i want the output to be "ABC"
endif;
enddo;
Thanks.
item Apple
len = 6
Apple has valuesets from A to E
Value of Apple = AHBZC
do numeric i = 1 while i<=6
if !Apple[i:1] in valuesets then
impute(Apple,); /// How can i remove the answers that is not in the valuesets? i want the output to be "ABC"
endif;
enddo;
Thanks.