<?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: change all time variables to character with array in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517702#M3389</link>
    <description>&lt;P&gt;Why do you need to convert your time variables to character? You can assign the TOD5. format to them without converting.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 23:26:44 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-11-30T23:26:44Z</dc:date>
    <item>
      <title>change all time variables to character with array</title>
      <link>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517682#M3384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset with multiple timepoints in each observation (eg.&amp;nbsp; lbtim1 lbtim2 lbtim3...).&amp;nbsp; They are all in time5. numeric format.&lt;/P&gt;
&lt;P&gt;How can I change all of these to character format (TOD5.)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of the time variables have the same prefix 'lbtim'&amp;nbsp; with the timepoint.&amp;nbsp; Here is what I started with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data prsupp;&lt;BR /&gt; set db.lbi;&lt;BR /&gt; &lt;BR /&gt; array timn (*) lbitim:;&lt;BR /&gt; array timc (*) lbtimc:;&lt;BR /&gt; do i= 1 to dim (timn);&lt;BR /&gt; if ~missing (timn(i)) then timc(i)=put(timn(i),tod5.);&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess it's something with the new character variables I'm trying to create.&amp;nbsp; Or can I just overwrite the numeric variables to character somehow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help is appreciated!&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;</description>
      <pubDate>Fri, 30 Nov 2018 22:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517682#M3384</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2018-11-30T22:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: change all time variables to character with array</title>
      <link>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517688#M3387</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;array timc (*) lbtimc:;&amp;nbsp; &amp;nbsp;This is a new assignment, so if i am right, you can't use var lists&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rather&amp;nbsp;array timc (count of lbtimb)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 22:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517688#M3387</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-30T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: change all time variables to character with array</title>
      <link>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517702#M3389</link>
      <description>&lt;P&gt;Why do you need to convert your time variables to character? You can assign the TOD5. format to them without converting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/change-all-time-variables-to-character-with-array/m-p/517702#M3389</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-30T23:26:44Z</dc:date>
    </item>
  </channel>
</rss>

