BookmarkSubscribeRSS Feed
des2
SAS Alumni

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;

1 REPLY 1
LinusH
Tourmaline | Level 20

What I've found is a feature in Enterprise Miner.

There might be other ways, but probably not OOTB.

https://documentation.sas.com/doc/en/emref/15.1/n0jswh909h49dnn1mq562smtf4jz.htm#p19aqwnp8fzptmn18q1...

Data never sleeps

AI Navigator GIF.gif


Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.

Check it out on Microsoft Marketplace →

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
  • 1590 views
  • 0 likes
  • 2 in conversation