<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC FOREST- Unable to run code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962871#M48266</link>
    <description>You are getting these new errors because you didn't change the name of the library and data set in the data= and out= options.&lt;BR /&gt;&lt;BR /&gt;So you should replace it here&lt;BR /&gt;&lt;BR /&gt;DATA=casuser.credit_modeling_sampling  &lt;BR /&gt;&lt;BR /&gt; and here&lt;BR /&gt;OUT=CASUSER.rf_preds;&lt;BR /&gt;&lt;BR /&gt;For your library and data set.  &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Mar 2025 19:12:16 GMT</pubDate>
    <dc:creator>eduardo_silva</dc:creator>
    <dc:date>2025-03-28T19:12:16Z</dc:date>
    <item>
      <title>PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962745#M48253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached herewith dataset and coding script in sas on demand. I am having diificult in running the below code, would appreciate if anybody can help me out;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with different ways as following but not working stilll:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;*Step 4: Random Forest (More Robust Alternative)) &amp;nbsp;*/&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;PROC FOREST DATA=credit_data_transformed;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; TARGET Default_Flag / LEVEL=BINARY;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; NTREES=100; /* Number of trees */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; SEED=12345;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; OOBPREDICT;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; OUTPUT OUT=rf_preds PREDICTED=RF_Pred_Prob;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; /* Specify number of trees and random seed */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; NTREES=100;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; SEED=12345;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; /* Optional: for scoring output */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; SCORE OUT=rf_preds;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; /* Number of trees, random seed, and model training */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; NTREES=100; /* Specify the number of trees */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; SEED=12345; /* Set the random seed */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; TRAINFRAC=0.7; /* Use 70% of the data for training */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; /* Store the predictions */&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; SCORE OUT=rf_preds;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;PROC SETINIT;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Mar 2025 00:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962745#M48253</guid>
      <dc:creator>skumar46</dc:creator>
      <dc:date>2025-03-27T00:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962748#M48254</link>
      <description>Hi, can you share the log of your program here?</description>
      <pubDate>Thu, 27 Mar 2025 01:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962748#M48254</guid>
      <dc:creator>eduardo_silva</dc:creator>
      <dc:date>2025-03-27T01:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962756#M48255</link>
      <description>I have used procforest/hp procforest in 3 different ways and log of all three as under-you can check the attached sas script&lt;BR /&gt;1)&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 PROC FOREST DATA=credit_data_transformed;&lt;BR /&gt;70 TARGET Default_Flag / LEVEL=BINARY;&lt;BR /&gt;______&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: INTERVAL, NOMINAL.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;BR /&gt;72 Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL;&lt;BR /&gt;74 NTREES=100; /* Number of trees */&lt;BR /&gt;______&lt;BR /&gt;180&lt;BR /&gt;75 SEED=12345;&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;76 OOBPREDICT;&lt;BR /&gt;__________&lt;BR /&gt;180&lt;BR /&gt;77 OUTPUT OUT=rf_preds PREDICTED=RF_Pred_Prob;&lt;BR /&gt;_________&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, COPYVAR, COPYVARS, MODELID, ROLE.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;78 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE FOREST used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 591.90k&lt;BR /&gt;OS Memory 26020.00k&lt;BR /&gt;Timestamp 03/27/2025 02:36:33 AM&lt;BR /&gt;Step Count 158 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 49&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;&lt;BR /&gt;79&lt;BR /&gt;80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model;&lt;BR /&gt;________&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE,&lt;BR /&gt;GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE,&lt;BR /&gt;MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD,&lt;BR /&gt;SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;WARNING: Ignoring second data set reference.&lt;BR /&gt;71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;BR /&gt;72 Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;74&lt;BR /&gt;75 /* Specify number of trees and random seed */&lt;BR /&gt;76 NTREES=100;&lt;BR /&gt;______&lt;BR /&gt;180&lt;BR /&gt;77 SEED=12345;&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;78&lt;BR /&gt;79 /* Optional: for scoring output */&lt;BR /&gt;80 SCORE OUT=rf_preds;&lt;BR /&gt;81 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE HPFOREST used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 659.37k&lt;BR /&gt;OS Memory 26020.00k&lt;BR /&gt;Timestamp 03/27/2025 02:36:56 AM&lt;BR /&gt;Step Count 164 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 48&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 16&lt;BR /&gt;&lt;BR /&gt;3)&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model;&lt;BR /&gt;________&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE,&lt;BR /&gt;GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE,&lt;BR /&gt;MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD,&lt;BR /&gt;SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;WARNING: Ignoring second data set reference.&lt;BR /&gt;71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term&lt;BR /&gt;72 Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;74&lt;BR /&gt;75 /* Number of trees, random seed, and model training */&lt;BR /&gt;76 NTREES=100; /* Specify the number of trees */&lt;BR /&gt;______&lt;BR /&gt;180&lt;BR /&gt;77 SEED=12345; /* Set the random seed */&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;78 TRAINFRAC=0.7; /* Use 70% of the data for training */&lt;BR /&gt;_________&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;79&lt;BR /&gt;80 /* Store the predictions */&lt;BR /&gt;81 SCORE OUT=rf_preds;&lt;BR /&gt;82 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE HPFOREST used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 656.75k&lt;BR /&gt;OS Memory 26020.00k&lt;BR /&gt;Timestamp 03/27/2025 02:37:33 AM&lt;BR /&gt;Step Count 170 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 48&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 8&lt;BR /&gt;&lt;BR /&gt;83&lt;BR /&gt;84&lt;BR /&gt;85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;95&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2025 02:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962756#M48255</guid>
      <dc:creator>skumar46</dc:creator>
      <dc:date>2025-03-27T02:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962781#M48256</link>
      <description>&lt;P&gt;Hi, Check out the documentation for the &lt;A href="https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casml/viyaml_forest_syntax11.htm" target="_self"&gt;FOREST&lt;/A&gt; and &lt;A href="https://go.documentation.sas.com/doc/en/emhpprcref/14.2/emhpprcref_hpforest_overview.htm" target="_self"&gt;HPFOREST&lt;/A&gt; procedures and make sure you have valid syntax for each of your statements. For example, you have this statement with the FOREST procedure:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TARGET Default_Flag / LEVEL=BINARY;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The only valid choices for the LEVEL= options are LEVEL=NOMINAL or LEVEL=INTERVAL. The error notes in the log can be hard to figure out, but this error is trying to tell you that LEVEL=BINARY isn't valid syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR 22-322: Syntax error, expecting one of the following: INTERVAL, NOMINAL.&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 15:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962781#M48256</guid>
      <dc:creator>JackieJ_SAS</dc:creator>
      <dc:date>2025-03-27T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962814#M48263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Used both Nominal &amp;amp; Interval but still facing same issue. Pls support&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962814#M48263</guid>
      <dc:creator>skumar46</dc:creator>
      <dc:date>2025-03-28T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962866#M48264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You are getting errors because your syntax is incorrect.&lt;/P&gt;
&lt;P&gt;Maybe you are thinking Proc Forest and Proc HPForest use the same syntax, but they don't.&lt;/P&gt;
&lt;P&gt;For the first procedure, the following program should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FOREST DATA=casuser.credit_modeling_sampling NTREES=100 SEED=12345;&lt;BR /&gt;TARGET Default_Flag / LEVEL=NOMINAL;&lt;BR /&gt;INPUT Income Loan_Amount &lt;BR /&gt;Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;/ LEVEL=INTERVAL;&lt;BR /&gt;&lt;BR /&gt;OUTPUT OUT=CASUSER.rf_preds;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You must use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;LEVEL=NOMINAL&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the target statement when fitting a binary target in Proc Forest.&lt;/P&gt;
&lt;P&gt;I also removed the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;OOBPREDICT&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement because it doesn't exist, and I don't know what your intention was by using it.&lt;/P&gt;
&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;NTREES&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;SEED&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;options should be placed in the Proc Forest statement.&lt;/P&gt;
&lt;P&gt;There is no&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;PREDICTED&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option in the output statement, so I removed it, but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;rf_preds&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;already contains the predicted probabilities if that is what you are looking for.&lt;/P&gt;
&lt;P&gt;In the second procedure, you are using Proc HPForest, so the syntax is different. This program should work for the sample data you provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345;&lt;BR /&gt;TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;INPUT Income Loan_Amount &lt;BR /&gt;Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;/ LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;&lt;BR /&gt;/* Optional: for scoring output */&lt;BR /&gt;SCORE OUT=rf_preds;&lt;BR /&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;MAXTREES&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;instead of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;NTREES&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the Proc HPForest statement.&lt;/P&gt;
&lt;P&gt;Unlike Proc Forest, Proc HPForest uses&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;LEVEL=BINARY&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;There is no&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;OUTMODEL&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option in Proc HPForest. You could use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;SAVE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement as a replacement, but it is not exactly the same thing.&lt;/P&gt;
&lt;P&gt;The third procedure is very similar to the second one, but you should insert the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;TRAINFRACTION&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option in the Proc HPForest procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345 trainfraction=0.6;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this explanation helps you achieve your goal.&lt;/P&gt;
&lt;P&gt;I'd also recommend you take a look at the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_058/casml/casml_forest_overview.htm" target="_self"&gt;Forest&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/emhpprcref/14.2/emhpprcref_hpforest_overview01.htm" target="_self"&gt;HPForest&lt;/A&gt;&amp;nbsp; documentation. It contains relevant information regarding the syntax.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 18:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962866#M48264</guid>
      <dc:creator>eduardo_silva</dc:creator>
      <dc:date>2025-03-28T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962870#M48265</link>
      <description>I tried both below codes given by you but still its not going through. I would appreciate if you download my given dataset and sas coding script and see if you are able to run code.&lt;BR /&gt;Code (1)&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 PROC FOREST DATA=casuser.credit_modeling_sampling NTREES=100 SEED=12345;&lt;BR /&gt;ERROR: Libref CASUSER is not assigned.&lt;BR /&gt;70 TARGET Default_Flag / LEVEL=NOMINAL;&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;71 INPUT Income Loan_Amount&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;72 Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;73 / LEVEL=INTERVAL;&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;74 OUTPUT OUT=CASUSER.rf_preds;&lt;BR /&gt;ERROR: Libref CASUSER is not assigned.&lt;BR /&gt;75 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE FOREST used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 193.18k&lt;BR /&gt;OS Memory 24224.00k&lt;BR /&gt;Timestamp 03/28/2025 07:03:51 PM&lt;BR /&gt;Step Count 152 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 15&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 8&lt;BR /&gt;&lt;BR /&gt;76&lt;BR /&gt;77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;87&lt;BR /&gt;Code (2)&lt;BR /&gt;&lt;BR /&gt;PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345;&lt;BR /&gt;TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;INPUT Income Loan_Amount&lt;BR /&gt;Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;/ LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;&lt;BR /&gt;/* Optional: for scoring output */&lt;BR /&gt;SCORE OUT=rf_preds;&lt;BR /&gt;RUN;&lt;BR /&gt;Error:&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345;&lt;BR /&gt;ERROR: Libref CASUSER is not assigned.&lt;BR /&gt;70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;71 INPUT Income Loan_Amount&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;72 Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;73 / LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;ERROR: No data set open to look up variables.&lt;BR /&gt;74&lt;BR /&gt;75 /* Optional: for scoring output */&lt;BR /&gt;76 SCORE OUT=rf_preds;&lt;BR /&gt;77 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE HPFOREST used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 348.40k&lt;BR /&gt;OS Memory 24224.00k&lt;BR /&gt;Timestamp 03/28/2025 07:04:09 PM&lt;BR /&gt;Step Count 158 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 14&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 8&lt;BR /&gt;&lt;BR /&gt;78&lt;BR /&gt;79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;89</description>
      <pubDate>Fri, 28 Mar 2025 19:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962870#M48265</guid>
      <dc:creator>skumar46</dc:creator>
      <dc:date>2025-03-28T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962871#M48266</link>
      <description>You are getting these new errors because you didn't change the name of the library and data set in the data= and out= options.&lt;BR /&gt;&lt;BR /&gt;So you should replace it here&lt;BR /&gt;&lt;BR /&gt;DATA=casuser.credit_modeling_sampling  &lt;BR /&gt;&lt;BR /&gt; and here&lt;BR /&gt;OUT=CASUSER.rf_preds;&lt;BR /&gt;&lt;BR /&gt;For your library and data set.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2025 19:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962871#M48266</guid>
      <dc:creator>eduardo_silva</dc:creator>
      <dc:date>2025-03-28T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FOREST- Unable to run code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962894#M48267</link>
      <description>Hi, I am still facing error with following codes. I believe that its waisting our both of times getting along with each other. I would appreciate if you run this at your end before responding and do share with my sas coding script, it will be easy for me&lt;BR /&gt;&lt;BR /&gt;PROC FOREST DATA=casuser.credit_modeling_sampling NTREES=100 SEED=12345;&lt;BR /&gt;TARGET Default_Flag / LEVEL=NOMINAL;&lt;BR /&gt;INPUT Income Loan_Amount&lt;BR /&gt;Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;/ LEVEL=INTERVAL;&lt;BR /&gt;OUTPUT OUT=CASUSER.rf_preds;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345;&lt;BR /&gt;TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */&lt;BR /&gt;INPUT Income Loan_Amount&lt;BR /&gt;Interest_Rate Debt_to_Income_Ratio Delinquency_History&lt;BR /&gt;/ LEVEL=INTERVAL; /* Specify input variables */&lt;BR /&gt;&lt;BR /&gt;/* Optional: for scoring output */&lt;BR /&gt;SCORE OUT=CASUSER.rf_preds;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;I am new user&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2025 20:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-FOREST-Unable-to-run-code/m-p/962894#M48267</guid>
      <dc:creator>skumar46</dc:creator>
      <dc:date>2025-03-28T20:50:58Z</dc:date>
    </item>
  </channel>
</rss>

