BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
lindamtl
Fluorite | Level 6

hlink="C:\Business_Data_Analysis\Idataglobal\Financial project\report\"
||trim(YR_MONTH)||"_"||trim(credit_group)||".html";

I use this code to point to a html file on 'C', but ODS did not print the report.  path is correct, file name is correct. Maybe the way i wrote above need adjust?

 

proc report data= RATE_with_crdt_v3 nowd split="/";
column yr_month credit_group churn_rate active terminated;
define yr_month/"Month" left ;
define credit_group/"Credit Group" center ;
define churn_rate/"Churn Rate" center format=percent11.2;
define active/"Active /Account Count" right ;
define terminated/"Cancelled /Account Count" right ;

compute credit_group;
hlink="C:\Business_Data_Analysis\Idataglobal\Financial project\report\"
||trim(YR_MONTH)||"_"||trim(credit_group)||".html";

call define (_col_, 'url',hlink);
call define (_col_, 'Style',
'style={flyover="Click to see '||strip(credit_group)||' report"}');
endcomp;


ODS tagsets.HTMLpanel event = column_panel (finish);
ODS tagsets.HTMLpanel event = row_panel (finish);

ODS TAGSETS.HTMLPANEL EVENT=PANEL(FINISH);
ODS TAGSETS.HTMLPANEL CLOSE;

1 ACCEPTED SOLUTION

Accepted Solutions
lindamtl
Fluorite | Level 6

Thank you. I missed RUN after ENCOMP. Now it can run

View solution in original post

3 REPLIES 3
lindamtl
Fluorite | Level 6

Thank you. I missed RUN after ENCOMP. Now it can run

mkeintz
PROC Star

@lindamtl wrote:

Thank you. I missed RUN after ENCOMP. Now it can run


Then mark your own response as the solution - no need to be shy.  That way, the problem will accurately be seen as solved.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 366 views
  • 0 likes
  • 3 in conversation