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.
Dynamic Value Set from a Lookup File
Dynamic Value Set from a Lookup File
- Attachments
-
- Snapshot
- CSPro_question.png (33.56 KiB) Viewed 1086 times
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Dynamic Value Set from a Lookup File
With the model you are following, you have to declare codes and labels as arrays: Something like:
Better yet, use the valueset object: https://www.csprousers.org/help/CSPro/v ... ction.html
array codes(500);
array string labels(500);
You can put that code before or after your nextEntry declaration.array string labels(500);
Better yet, use the valueset object: https://www.csprousers.org/help/CSPro/v ... ction.html
Re: Dynamic Value Set from a Lookup File
Thank you!