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}};
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.