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

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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