<?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: bookmarking the page numbers in external file in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/bookmarking-the-page-numbers-in-external-file/m-p/251807#M1435</link>
    <description>&lt;P&gt;I would advise you simplfy your question as I really don't want to start looking through RTF code and such like. &amp;nbsp;If you want to loop over those values, then use a do loop (and maybe an array if necessary) e.g;&lt;/P&gt;
&lt;PRE&gt;data want;
  do i="14","12, 15","8, 14, 20, 30, 32, 35";
    ...do something here e.g...
    page="Some page number="||strip(i);
  end;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Feb 2016 16:33:21 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-02-23T16:33:21Z</dc:date>
    <item>
      <title>bookmarking the page numbers in external file</title>
      <link>https://communities.sas.com/t5/All-Things-Community/bookmarking-the-page-numbers-in-external-file/m-p/251801#M1434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me in figuring out the code for below scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable with pagenumbers. I want these numbers to be hyperlinked to an external file. When there are one page numebr in the variable then there are no issues. But when there are multiple page numbers not sure how to code it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pages
14
12, 15
8, 14, 20, 30, 32, 35&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if index(pages,',')=0 then pg_=strip(pages);
else if index(pages,',') then do;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pg_=substr(pages, 1, index(pages,','));
&amp;nbsp;&amp;nbsp;&amp;nbsp; pg1_= substr(pages,index(pages,',')+1);
end;
&amp;nbsp;
if pages ne '' and index(pages, ',')=0 then origin = '{CRF {\field {\*\fldinst HYPERLINK "\\blankcrf.pdf#page=' ||
trim(left(pg_)) || '"}{\fldrslt {\cs15\cf2 Page ' || trim(left(pg_)) || '}}}}';
else if pages ne '' and countc(pages, ',')=1 then origin = '{CRF {\field {\*\fldinst HYPERLINK "\\blankcrf.pdf#page=' ||
trim(left(pg_)) || '"}{\fldrslt {\cs15\cf2 Pages ' || trim(left(pg_)) || '}}}}' ||'{{\field {\*\fldinst HYPERLINK "\\blankcrf.pdf#page=' ||
trim(left(pg1_)) || '"}{\fldrslt {\cs15\cf2 ' || trim(left(pg1_)) || '}}}}';
&amp;nbsp;
else if pages ne '' and countc(pages, ',') gt 1 then origin='{Multiple CRF {\field {\*\fldinst HYPERLINK "\\blankcrf.pdf#page=1"}{\fldrslt {\cs15\cf2 Pages}}}}';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#ff0000"&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;FONT face="Courier New" size="4"&gt;Can anyone help me in looping it n number of times based on the page numbers so that all the pages can be hyperlinked and I can replace the "Multiple CRF" value when there are more than two pages in the pages variable.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#ff0000"&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;FONT face="Courier New" size="4"&gt;Thank You for your time.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 16:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/bookmarking-the-page-numbers-in-external-file/m-p/251801#M1434</guid>
      <dc:creator>thummala</dc:creator>
      <dc:date>2016-02-23T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: bookmarking the page numbers in external file</title>
      <link>https://communities.sas.com/t5/All-Things-Community/bookmarking-the-page-numbers-in-external-file/m-p/251807#M1435</link>
      <description>&lt;P&gt;I would advise you simplfy your question as I really don't want to start looking through RTF code and such like. &amp;nbsp;If you want to loop over those values, then use a do loop (and maybe an array if necessary) e.g;&lt;/P&gt;
&lt;PRE&gt;data want;
  do i="14","12, 15","8, 14, 20, 30, 32, 35";
    ...do something here e.g...
    page="Some page number="||strip(i);
  end;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 16:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/bookmarking-the-page-numbers-in-external-file/m-p/251807#M1435</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-23T16:33:21Z</dc:date>
    </item>
  </channel>
</rss>

