<?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 ODS Object hyperlink in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-Object-hyperlink/m-p/673940#M202839</link>
    <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I would like to write the hyperlink after the text like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Information: hyperlink&lt;/P&gt;
&lt;P&gt;But, when I run the code (see below), the result is:&lt;/P&gt;
&lt;P&gt;Information (a lot of spaces) hyperlink&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find how to write the text and the adresse in the same line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTION NODATE NONUMBER;
OPTIONS PAPERSIZE=A4;
OPTIONS TOPMARGIN=0.5 in BOTTOMMARGIN=0.5 in LEFTMARGIN=0.5 in RIGHTMARGIN=0.5 in;
ODS NORESULTS;
ODS PDF FILE = "XXXXXX\TEST.pdf" dpi=1800;

data _NULL_;
	set SASHELP.CLASS(obs=1);
	declare odsout obj();
	obj.format_text( data: "Information:",
		overrides: " just=left color=green font_weight=bold font_size=8pt ");
obj.href(data:
	"Adresse", url: 'https://www.test.fr/', inline_attr:'color=blue');
Run;

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 16:47:51 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2020-08-01T16:47:51Z</dc:date>
    <item>
      <title>ODS Object hyperlink</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Object-hyperlink/m-p/673940#M202839</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I would like to write the hyperlink after the text like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Information: hyperlink&lt;/P&gt;
&lt;P&gt;But, when I run the code (see below), the result is:&lt;/P&gt;
&lt;P&gt;Information (a lot of spaces) hyperlink&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find how to write the text and the adresse in the same line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTION NODATE NONUMBER;
OPTIONS PAPERSIZE=A4;
OPTIONS TOPMARGIN=0.5 in BOTTOMMARGIN=0.5 in LEFTMARGIN=0.5 in RIGHTMARGIN=0.5 in;
ODS NORESULTS;
ODS PDF FILE = "XXXXXX\TEST.pdf" dpi=1800;

data _NULL_;
	set SASHELP.CLASS(obs=1);
	declare odsout obj();
	obj.format_text( data: "Information:",
		overrides: " just=left color=green font_weight=bold font_size=8pt ");
obj.href(data:
	"Adresse", url: 'https://www.test.fr/', inline_attr:'color=blue');
Run;

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 16:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Object-hyperlink/m-p/673940#M202839</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-08-01T16:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Object hyperlink</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Object-hyperlink/m-p/673967#M202856</link>
      <description>&lt;P&gt;If you want the obj.format_text&amp;nbsp; and the obj.href to output to the same line, I suspect you'll have to construct them as two cells in the same row of a table, as in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
  set SASHELP.CLASS(obs=1);
  declare odsout obj();
  obj.table_start();
    obj.row_start();
      obj.cell_start();
        obj.format_text( data: "Information:",overrides: " just=left color=green font_weight=bold font_size=8pt ");
      obj.cell_end();
      obj.cell_start();
        obj.href(data:"Adresse", url: 'https://www.test.fr/', inline_attr:'color=blue');
      obj.cell_end();
    obj.row_end();
  obj.table_end();
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect there are options for the obj.table_start() method thiat will allow you to elminate table grid lines, and left-justify the entire table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 02:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Object-hyperlink/m-p/673967#M202856</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-08-02T02:43:46Z</dc:date>
    </item>
  </channel>
</rss>

