Dear All,
I was trying to look for references on how to convert SAS script to PMML format but unsuccessful hence I posted here. The SAS script looks like below. The sample below is when PMML script is converted to SAS using proc pscore. Now, I want to know if there is a way if SAS to PMML. Thank you.
length "a_segment"n $57 ;
length "a_segment_new"n $62 ;
"PSCR_TEMP_FINAL_PRED_VAR"n = 0;
if ( "cohort"n eq 'AAA' ) then do;
if ( missing( "a_score_id"n ) or missing( "a_score"n ) or ( ( "a_score_id"n ne 'XXX' ) & ( "a_score_id"n ne 'YYY' ) ) ) then do;
"a_segment"n = 'SEG_A';
end;
end;
...
else if("a_segment"n eq 'SEG_A') then "a_segment"n = 'SEG_A' ;
else if("a_segment"n eq 'SEG_B') then "a_segment"n = 'SEG_B' ;
PSCR_EXIT :
drop
"PSCR_TEMP_FINAL_PRED_VAR"n "PSCR_ATTRIBUTE_MATCH"n;
What I've found is a feature in Enterprise Miner.
There might be other ways, but probably not OOTB.
Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.
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.
Ready to level-up your skills? Choose your own adventure.