I'm having a problem getting access to ODS output data sets from PROC REG. I am getting the files listed in the log but when I try to print log says there are no data sets. I am using the names printed using the TRACE. Anyone have any clues? Is it because of the BY statement? I've turned the NORESULTS off and on and that doesn't appear to be the problem.
ODS ESCAPECHAR='^';
FILENAME ODSOUT "K:\sci\sci chesapeake bay program projects\CURRENT\GAM_PROJECT\REPORTS\";
ODS NORESULTS;
ODS TRACE ON;
*Prevents pdf files from being opened while program is running;
ODS PDF BODY="K:\sci\sci chesapeake bay program projects\CURRENT\GAM_PROJECT\REPORTS\Flow_Correction_Report.pdf";
ODS PDF FILE="K:\sci\sci chesapeake bay program projects\CURRENT\GAM_PROJECT\REPORTS\Flow_Correction_Report.pdf";
TITLE1"^S={JUST=C FONT_SIZE=11PT FONT_STYLE=ROMAN}Flow Variable Selection Diagnostics Results";
TITLE2"^S={JUST=C FONT_SIZE=11PT FONT_STYLE=ROMAN}using the best flow variable based on R-squared";
PROC REG OUTEST = FLOW_TABLE DATA=DATA_FLOW TABLEOUT;
NEWFLOW: MODEL TN = NEWFLOW;
OUTPUT OUT=TMP_RESID R=RES_FLOW;
ODS OUTPUT Fitstatistics=FitStatistics ANOVA=ANOVA ParameterEstimates=ParameterEstimates;
BY RIVER SEGMENT STATION FLOW_MODELED;
ODS OUTPUT CLOSE;
RUN;
ODS TRACE OFF;
ODS PDF CLOSE;
RUN;
QUIT;
PROC PRINT DATA=FitStatistics;
PROC PRINT DATA=ANOVA;
PROC PRINT DATA=ParameterEstimates;
Never mind ..... I found the problem
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.