BookmarkSubscribeRSS Feed
des2
SAS Employee

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

Ready to join fellow brilliant minds for the SAS Hackathon?

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