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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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