Page 1 of 1

Dynamic Value Set from a Lookup File

Posted: December 24th, 2021, 4:37 am
by Nikola
I am making "Dynamic Value Set from a Lookup File" following CSPro book.

With that I don't know what should I do to solve below errors (I attached snapshot):

ERROR(7): 'codes' is not a declared variable or is a misspelled dictionary entry
ERROR(8): 'labels' is not a declared variable or is a misspelled dictionary entry

I made questionnaires named 'codes' and 'labels' in PROC PROVINCE, but it not working.

Thank you in advance.

Re: Dynamic Value Set from a Lookup File

Posted: December 24th, 2021, 9:33 am
by Gregory Martin
With the model you are following, you have to declare codes and labels as arrays: Something like:
array codes(500);
array string labels(500);
You can put that code before or after your nextEntry declaration.

Better yet, use the valueset object: https://www.csprousers.org/help/CSPro/v ... ction.html

Re: Dynamic Value Set from a Lookup File

Posted: December 26th, 2021, 8:50 am
by Nikola
Thank you!