Score Code

Model scoring refers to the process of generating predicted values for a data set that might contain the response variable of interest. Score code is exported as a SAS DATA step that can be executed on new data sets in any SAS environment. All variables used by the model in any capacity are included in the score code. This includes interaction terms, group by variables, frequency variables, and weight variables. Score code is not available for interactive decision trees.
To generate model score code, click Show Actions Button, and select Export Score Code. In the Export Model Score Code window, click Export. In the Save As window, navigate to where you want to save the code, and click Save.
Score code is saved as a .sas file and can be viewed in any word processing program.
Note: It is possible for your exported score code to have lines of code that exceed the maximum line length of 32768. There are two solutions for this issue. The first solution requires that you edit the exported text file to include a line break on each of the long lines and to insert / lrecl=1000000 in the %include statement. The second solution requires that you open the exported text file in a SAS Program Editor and insert a line break on each of the long lines. In the SAS Program Editor there is a limit of 6000 characters per line.
Last updated: January 8, 2019