libname loan “d:\2019xyt”;

    proc hpsplit data=loan.test_2_fa maxdepth=5 ;
    class v_5 ;
    model v_5(event=’1’) = FA_P1-FA_P9
    v_172_c v_100 v_2 v_20 v_19 v_50 v_31_c
    ;
    prune costcomplexity;
    partition fraction(validate=0.3 seed=123);
    code file=’d:\hpsplexc.sas’;
    rules file=’d:\rules.txt’;

    run;

    data scored;
    set loan.test_2_fa;
    %include ‘d:\hpsplexc.sas’;
    run;