Hi all, I'm trying the following scoring approach using astore action set
80 proc cas;
81 loadactionset "aStore";
82 action aStore.score /
83 table={caslib='Global Marketing (DNFS)',
84 name='recc_test_open_dist'},
85 out={name='user_recc_open'},
86 rstore={caslib='Global',
87 name='recc_dtos_astore'},
88 options={name='nTopRecoms', value=&n_recc};
89 run;
NOTE: Active Session now CASAUTO.
NOTE: Added action set 'aStore'.
ERROR: An attempt was made to convert parameter 'options.value' from int64 to parameter list, but the conversion failed.
ERROR: The action stopped due to errors.
90
The error seems related to the fact that the value assigned for the nTopRecoms option is not accepted by the cas syntax. Any idea what could be beyond this error?
Solved with the following syntax adjustment:
action aStore.score /
table={caslib='Global',
name='recc_test_open_dist'},
out={name='user_recc_open'},
rstore={caslib='Global Marketing (DNFS)',
name='recc_dtos_astore'},
options={{name='nTopRecoms', value=&n_recc}};
Solved with the following syntax adjustment:
action aStore.score /
table={caslib='Global',
name='recc_test_open_dist'},
out={name='user_recc_open'},
rstore={caslib='Global Marketing (DNFS)',
name='recc_dtos_astore'},
options={{name='nTopRecoms', value=&n_recc}};
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.