The SAS Output Delivery System and reporting techniques

Data Step ODSOUT Object's HREF Method

Reply
N/A
Posts: 0

Data Step ODSOUT Object's HREF Method

I'm using the experimental ODSOUT object in a data step with SAS 9.1.3 Service Pack 4 and Windows XP pro. I've been trying to use the HREF method, but have been unable to get it to work. The method returns a 0 return code, but I haven't seen any evidence in the output that the HREF was actually created. Does it work for the SAS release I'm using? Will the HREF method, or an equivalent, be available when the ODSOUT object is no longer experimental?

My test code is below.

Thanks,
Randy


ods listing close;
ods html file='c:\temp\test.html';
data _null_;
dcl odsout odsMan();
odsMan.format_Text(text: 'Test1');
rc=odsMan.href(text: 'This is the HREF', file: 'http://support.sas.com');
put rc=;
odsMan.format_Text(text: 'Test2');
odsMan.delete();
run;
ods listing;
ods html close;
Ask a Question
Discussion stats
  • 0 replies
  • 194 views
  • 0 likes
  • 1 in conversation