<?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 formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390534#M93702</link>
    <description>&lt;P&gt;Add leading zero to numeric variable WithOUT using &lt;STRONG&gt;ZW.D&lt;/STRONG&gt; format&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2017 08:14:53 GMT</pubDate>
    <dc:creator>shivamarrora0</dc:creator>
    <dc:date>2017-08-24T08:14:53Z</dc:date>
    <item>
      <title>formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390534#M93702</link>
      <description>&lt;P&gt;Add leading zero to numeric variable WithOUT using &lt;STRONG&gt;ZW.D&lt;/STRONG&gt; format&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390534#M93702</guid>
      <dc:creator>shivamarrora0</dc:creator>
      <dc:date>2017-08-24T08:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390536#M93704</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144247"&gt;@shivamarrora0&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Add leading zero to numeric variable WithOUT using &lt;STRONG&gt;ZW.D&lt;/STRONG&gt; format&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why would somebody want to do such a stupid thing? Use the right tool (Maxim 14).&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390536#M93704</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-24T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390537#M93705</link>
      <description>This was the question asked by me in an interview</description>
      <pubDate>Thu, 24 Aug 2017 08:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390537#M93705</guid>
      <dc:creator>shivamarrora0</dc:creator>
      <dc:date>2017-08-24T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390538#M93706</link>
      <description>&lt;P&gt;My answer would be&lt;/P&gt;
&lt;P&gt;"You want me to do meaningful work for you, not waste my (and your) time, don't you?"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look for an employer with brains.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390538#M93706</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-24T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390541#M93708</link>
      <description>&lt;P&gt;Whilst I completely agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;that this is typical daft interview question, it is designed to see how you think on your feet (i.e. you wouldn't know this was a question coming up). &amp;nbsp;It would also demonstrate if you know multiple ways of doing things. &amp;nbsp;Couple of options:&lt;/P&gt;
&lt;P&gt;1) Create your own picture format and apply&lt;/P&gt;
&lt;P&gt;2) Create a text version of the number and use string functions to add the required number of zeroes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously the ideal scenario is to keep as a number and format using the provided Z format, however knowing the other options can be useful in other scenarios, such as if the format doesn't show exactly the way you want it to.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390541#M93708</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-24T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390542#M93709</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144247"&gt;@shivamarrora0&lt;/a&gt; wrote:&lt;BR /&gt;This was the question asked by me in an interview&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Generally when given an abitrary restriction in a question like that I would ask questions about any cause for the restriction. Such restrictions might arise based on something else in the data/procedures/environment limits and a suggestion should tailor to the causes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other wise this is like asking someone to add without using + button on a calculator.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390542#M93709</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-24T08:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390583#M93728</link>
      <description>&lt;PRE&gt;



proc format;
picture fmt
 other='999999';
run;
data a;
 set sashelp.class;
 keep age;
 format age fmt6.;
run;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Aug 2017 12:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/390583#M93728</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-24T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517686#M140020</link>
      <description>&lt;P&gt;data NACRS.NACRS1617;&lt;BR /&gt;704 set NACRS.NACRS1617(rename=(RESPONSIBILITY_FOR_PAYMENT=temp));&lt;BR /&gt;705 RESPONSIBILITY_FOR_PAYMENT = put(temp,Z2.);&lt;BR /&gt;---&lt;BR /&gt;48&lt;BR /&gt;ERROR 48-59: The format $Z was not found or could not be loaded.&lt;/P&gt;&lt;P&gt;706 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I writing this correctly?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 22:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517686#M140020</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-11-30T22:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517701#M140027</link>
      <description>&lt;P&gt;&lt;SPAN&gt;RESPONSIBILITY_FOR_PAYMENT is already character.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maxim 3: Know Your Data&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517701#M140027</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-30T23:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517705#M140029</link>
      <description>&lt;P&gt;I do not understand that question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot add a lead zero to a number.&amp;nbsp; Or put another way no matter how many leading zeros you add to a number it won't change the value of the number.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/formats/m-p/517705#M140029</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-30T23:44:35Z</dc:date>
    </item>
  </channel>
</rss>

