BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
dcortell
Pyrite | Level 9

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?

1 ACCEPTED SOLUTION

Accepted Solutions
dcortell
Pyrite | Level 9

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}};

View solution in original post

1 REPLY 1
dcortell
Pyrite | Level 9

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}};

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 683 views
  • 0 likes
  • 1 in conversation