<?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: Proc Format - user-defined informat PDw.d in Windows in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152815#M40193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Review the PD description. You are making wrong assumptions on that. It is an ancient type known on mainframes. Every but is split in nibbles for the digits an sign as a separate nibble. The pd3. format is describing 2 bytes not 3. Reading numeric from text is one digit for each byte.&lt;/P&gt;&lt;P&gt;That is causing your problems with lengths. Writing 2 bytes an reading 3 is not logical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 14:04:24 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-06-24T14:04:24Z</dc:date>
    <item>
      <title>Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152803#M40181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;SAS version 9.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I can write and read data with a pd3. informat as long as I don't use my own user defined informat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would like to use my own informat because I would like to do some testing prior to reading.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I define my own informats like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt;"&gt;format&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; inthree&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; low-high = [&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;]&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; inpdthree &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; low-high = [&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;pd3.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;] ;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This data step writes 3 packed bytes in positions 5:7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=-&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;12&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;file&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple;"&gt;'C:\PROD\SAS93\test3.txt'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; x&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; x&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;pd3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This data step reads 3 packed bytes from positions 5:7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; test3a;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple;"&gt;'C:\PROD\SAS93\test3.txt'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x1&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x2&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;pd3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt;"&gt;print&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;=test3a; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #ECE9D8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This data step produces a lost card error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; test3b;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple;"&gt;'C:\PROD\SAS93\test3.txt'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x1&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;3.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x2&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;inpdthree.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Does anyone know why I'm getting the lost card error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This data step reads x1 correctly but produces an invalid data error for x2 in positions 5-7:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; test3b;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; infile&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple;"&gt;'C:\PROD\SAS93\test3.txt'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; informat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;inthree.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal;"&gt;inpdthree.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt; x2 &lt;SPAN style="background: #ECE9D8;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Does anyone know why I'm getting the invalid data error for x2?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 16:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152803#M40181</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-23T16:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152804#M40182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to post some example data.&lt;/P&gt;&lt;P&gt;Likely you may need to look at missover or truncover or similar on your infile statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152804#M40182</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-23T17:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152805#M40183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are using PD types at windows do not also use the default windows record separation cr-lf.&amp;nbsp; It is possible to have that created by using PD fields.&lt;/P&gt;&lt;P&gt;Causing some same confusing while can using comma as decimal separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create your own format using the fcmp&amp;nbsp; function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152805#M40183</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-23T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152806#M40184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The sample data is generated in the first data step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;There's only one record, so I don't see why there's an issue with the carriage return.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I don't have any difficulty using the pd3. informat -- as illustrated in the second data step, which runs perfectly well without any special carriage returns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I get this error only when using PROC FORMAT to define my own informat.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152806#M40184</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-23T17:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152807#M40185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the values in your .txt file?&amp;nbsp; My txt file shows "-12 €&amp;nbsp; ".&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=-12;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file 'E:\test3.txt';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put&amp;nbsp; @1&amp;nbsp; x&amp;nbsp; 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5&amp;nbsp; x&amp;nbsp; pd3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152807#M40185</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-23T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152808#M40186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Jwillis, thank you for trying to run through this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The text file is generated by the first data step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;(I'm not using any data that's not in my original post)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The "-12 €&amp;nbsp; " is the way it looks on one line -- the "€&amp;nbsp; " is the packed representation of the value -12&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The first data step generates one record with two representations of the value -12 (the regular representation and the packed representation separated by a space).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Please try running the second data step, which reads that text file correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Please try running the third data step, which generates an error, and... look at the log&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;In the log, you'll see the HEX representation of the packed value -12&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152808#M40186</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-23T18:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152809#M40187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear agoldma,&lt;/P&gt;&lt;P&gt;I played with your code and was unable to break the code to find out the problem nor find documentation to explain how to "format a format".&amp;nbsp; Essentially you are coding a format to choose which format to use. My workaround is to code a macro that contains the format value I want to apply.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;%let frmat=pd3.;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=-12;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file 'E:\test4.txt';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put&amp;nbsp; @1&amp;nbsp; x&amp;nbsp; 3.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 '*'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5&amp;nbsp; x&amp;nbsp; &amp;amp;frmat.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql; drop table work.test3a; quit;&lt;BR /&gt;data test3a;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile 'E:test4.txt';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input @1 x13 3.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 sep1 $1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 x1pd &amp;amp;frmat.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=test3a; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 11:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152809#M40187</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-24T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152810#M40188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Jwillis, thank you for putting some serious effort into this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;The example that I provided seems pointless, but it's sufficient to illustrate the behavior of SAS that appears to be inconsistent with documentation. This example is not the real code that I'm using in production, but it gives the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This is not just a theoretical exercise because user-defined formats allow us to do fast and streamlined testing of the data prior to reading it. This is very useful for reading inconsistent data. There are many papers written on proc format (easy to find on the internet). Here are some examples in these forums:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/24574#24574"&gt;Must be a better way to do this (missing values)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/103765#103765"&gt;Converting Raw Files with Dynamically Calculated Layout&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/169763#169763"&gt;Proc format issues: invalue statement ignores length specified with informats&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Coincidentally, the third link above seems to be describing a similar problem that I'm having. I didn't find this link prior to posting my question because I was looking for the PDw.d informat. I didn't know that this problem applied to other informats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Since SAS is very versatile, there are many ways to accomplish the same thing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;My current workaround is to break the input statement in half and do the testing in the middle there. It works, but I was hoping for a nicer solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152810#M40188</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-24T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152811#M40189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your informat does not use the proper range.&amp;nbsp; Try OTHER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; inpdthree &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; other = [&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;pd3.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;] ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152811#M40189</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-06-24T12:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152812#M40190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To fix the LOSTCARD use INFILE statement option TRUNCOVER.&amp;nbsp; It seems the default width is not being honored from the INFORMAT, not sure why as it does seem to be honored in the step where you use INFORMAT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;*This data step produces a lost card error:;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test3b;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'~/test3.txt'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;truncover&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x1&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3.&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;5&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x2&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;inpdthree.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152812#M40190</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-06-24T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152813#M40191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Data _null_, thank you very much for both suggestions: using "other" instead of low-high and using truncover.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Both were necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I don't see why they should be necessary, but I'm glad it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt; text-align: justify;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This official Help article uses low-high as an example: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n03qskwoints2an1ispy57plwrn9.htm"&gt;Specifying Values or Ranges&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152813#M40191</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-24T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152814#M40192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think low-high would be for "normal" numbers but PD is I think what SAS calls Hexadecimal input.&amp;nbsp;&amp;nbsp; I don't know. :smileysilly:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152814#M40192</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-06-24T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152815#M40193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Review the PD description. You are making wrong assumptions on that. It is an ancient type known on mainframes. Every but is split in nibbles for the digits an sign as a separate nibble. The pd3. format is describing 2 bytes not 3. Reading numeric from text is one digit for each byte.&lt;/P&gt;&lt;P&gt;That is causing your problems with lengths. Writing 2 bytes an reading 3 is not logical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152815#M40193</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-24T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152816#M40194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Jaap, I agree that every byte is split into 2 nibbles, and the sign is in the first byte (unfortunately in Windows it takes a full byte to store the sign). Still, this leaves plenty of room to fit the value of -12 into the "pd3." format. Even pd2. has enough room to store the value of -12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;If you run through the code in my original post, you'll see that it includes a data step where the pd3. informat works perfectly as long as I don't use PROC FORMAT to define my own informat, so the problem is not in the use of the pd3. informat. It's in using it inside the proc format to create my own informat. If I write something with a pd3. format, the right way to read it is with a pd3. informat. As some previous posts implied, the PROC FORMAT doesn't handle some lengths correctly for user-defined informats, so we have to take additional measures.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;If you still think that I assumed something incorrectly, please specify which assumption it is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Also, your suggestion about using the fcmp function sounds interesting, but I couldn't find that function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Can you please check the spelling of "fcmp"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 03:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152816#M40194</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-25T03:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152817#M40195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;The use of fcmp with formats is an example, see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p1gg77jyhc9s42n1f1vjyx2hsg8b.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p1gg77jyhc9s42n1f1vjyx2hsg8b.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The PD description is at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n0xnvrbp96w34un1j7fgbfqgz4x5.htm"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n0xnvrbp96w34un1j7fgbfqgz4x5.htm&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; see the remark that all elements including the sign are half byte the nibble not a byte.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That is resulting the pd3. Format will describe 2 bytes where as the common char numeric will use 3 bytes. That is causing length problems in your program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 06:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152817#M40195</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-25T06:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152818#M40196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap,&lt;/P&gt;&lt;P&gt;I am commenting to learn. I tested the agoldma code.&amp;nbsp; The formats 3. and PD3. work fine all by themselves.&amp;nbsp; If I understand the link you provided, &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n0xnvrbp96w34un1j7fgbfqgz4x5.htm"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n0xnvrbp96w34un1j7fgbfqgz4x5.htm&lt;/A&gt;, data written as .pd4 should be read as .pd4.&amp;nbsp; I wrote my data as .pd3 and read it in as .pd3 and the process worked as expected. When I wrote .pd3 and read as .pd2, the file read in the number "0" not the number "-12".&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am thinking ahead and imagining two files, one created with .pd4 and the other created with .pd3.&amp;nbsp; How would I build code that would adjust itself to change the format to .pd3 or .pd4 based on the file being read.&amp;nbsp; My solution is to use macro variables.&amp;nbsp; I believe that agoldma is trying to build a proc format solution. Data _nulls_ solution is very novel to me.&amp;nbsp; I have never seen&amp;nbsp; "&lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt; inpdthree &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #008080;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #008080;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt; other = [&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #008080;"&gt;pd3.&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;] ;"&amp;nbsp; and I have also never seen brackets "[ ]" used in a Proc format. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;Thank you to all who post Questions and Answers.&amp;nbsp; Your thoughts and Ideas are priceless and definitely cheaper than taking SAS courses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;37&lt;/P&gt;&lt;P&gt;38 %let thre=3.;&lt;/P&gt;&lt;P&gt;39 %let pdthre=pd3.;&lt;/P&gt;&lt;P&gt;40 data _null_;&lt;/P&gt;&lt;P&gt;41 x=-12;&lt;/P&gt;&lt;P&gt;42 file 'E:\test5.txt';&lt;/P&gt;&lt;P&gt;43 put @1 x &amp;amp;thre.&lt;/P&gt;&lt;P&gt;44 @4 '*'&lt;/P&gt;&lt;P&gt;45 @5 x &amp;amp;pdthre.&lt;/P&gt;&lt;P&gt;46 @8 '#'&lt;/P&gt;&lt;P&gt;47 ;&lt;/P&gt;&lt;P&gt;48 run;&lt;/P&gt;&lt;P&gt;NOTE: The file 'E:\test5.txt' is:&lt;/P&gt;&lt;P&gt;Filename=E:\test5.txt,&lt;/P&gt;&lt;P&gt;RECFM=V,LRECL=256,File Size (bytes)=0,&lt;/P&gt;&lt;P&gt;Last Modified=25Jun2014:07:33:06,&lt;/P&gt;&lt;P&gt;Create Time=24Jun2014:08:10:31&lt;/P&gt;&lt;P&gt;NOTE: 1 record was written to the file 'E:\test5.txt'.&lt;/P&gt;&lt;P&gt;The minimum record length was 8.&lt;/P&gt;&lt;P&gt;The maximum record length was 8.&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;50 proc sql;&lt;/P&gt;&lt;P&gt;50 ! drop table work.test5;&lt;/P&gt;&lt;P&gt;NOTE: Table WORK.TEST5 has been dropped.&lt;/P&gt;&lt;P&gt;50 ! quit;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;51 data test5;&lt;/P&gt;&lt;P&gt;52 infile 'E:test5.txt' truncover;&lt;/P&gt;&lt;P&gt;53 input @1 x13 &amp;amp;thre.&lt;/P&gt;&lt;P&gt;54 @4 sep1 $1.&lt;/P&gt;&lt;P&gt;55 @5 x1pd &amp;amp;pdthre.&lt;/P&gt;&lt;P&gt;56 @8 sep2 $1&lt;/P&gt;&lt;P&gt;57 ;&lt;/P&gt;&lt;P&gt;58 run;&lt;/P&gt;&lt;P&gt;NOTE: The infile 'E:test5.txt' is:&lt;/P&gt;&lt;P&gt;Filename=E:\test5.txt,&lt;/P&gt;&lt;P&gt;RECFM=V,LRECL=256,File Size (bytes)=10,&lt;/P&gt;&lt;P&gt;Last Modified=25Jun2014:07:33:06,&lt;/P&gt;&lt;P&gt;Create Time=24Jun2014:08:10:31&lt;/P&gt;&lt;P&gt;NOTE: 1 record was read from the infile 'E:test5.txt'.&lt;/P&gt;&lt;P&gt;The minimum record length was 8.&lt;/P&gt;&lt;P&gt;The maximum record length was 8.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.TEST5 has 1 observations and 4 variables.&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;59&lt;/P&gt;&lt;P&gt;60 proc print data=test5; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; x13&amp;nbsp;&amp;nbsp;&amp;nbsp; sep1&amp;nbsp;&amp;nbsp;&amp;nbsp; x1pd&amp;nbsp;&amp;nbsp;&amp;nbsp; sep2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 11:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152818#M40196</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-25T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152819#M40197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agoldma and Data_Null_,&lt;/P&gt;&lt;P&gt;Is your code to exclude parentheses from "Default= Max=" intentional?&amp;nbsp; When I leave off the parentheses in the invalue statement, it appears that the default= and max= statements are part of the 'start' and 'end' definitions of the format. When I put the parentheses around&lt;/P&gt;&lt;P&gt;the default and max words, the format looks like I expect it to.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt; inpdthree (&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #008080;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background-color: #ffffff; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #008080;"&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt; other = [&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #008080;"&gt;pd3.&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options nofmterr;&lt;BR /&gt;proc format; invalue inthree&amp;nbsp;&amp;nbsp; default=3 max=3 &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other=3. ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invalue inpdthree default=3 max=3 &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other=pd3. ;&amp;nbsp; &lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format; value inthree&amp;nbsp;&amp;nbsp; (default=3 max=3) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other=3. ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value inpdthree (default=3 max=3) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other=pd3. ;&amp;nbsp; &lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format fmtlib;&lt;BR /&gt;select @inthree inthree @inpdthree inpdthree ;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152819#M40197</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-25T12:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152820#M40198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agoldma,&lt;/P&gt;&lt;P&gt;Please post your solution.&amp;nbsp; When I tried your solution with Data_Null_s enhancement, I do not achieve the answer your want.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152820#M40198</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-06-25T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152821#M40199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jwillis, I'll try to look at your code later today (that's a lot of code, glad to see that you're interested in dinasaurs)&lt;/P&gt;&lt;P&gt;If you start with my original code and change 2 things that data_null_ suggested, the user-defined-informat-method should work&lt;/P&gt;&lt;P&gt;The 2 things are:&lt;/P&gt;&lt;P&gt;use "other" instead of "low-high" in the definition of the informat&lt;/P&gt;&lt;P&gt;use "truncover" on the input line&lt;/P&gt;&lt;P&gt;Also... I think you're right about using parentheses for the options (deault=3 max=3)&lt;/P&gt;&lt;P&gt;I'll try to look at it later today&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152821#M40199</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-25T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - user-defined informat PDw.d in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152822#M40200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are correct this omission of parenthesis around the length options is the issue.&amp;nbsp; I did not even notice that yesterday.&amp;nbsp; Correcting the syntax of the INVALUE fixes "everything".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-user-defined-informat-PDw-d-in-Windows/m-p/152822#M40200</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-06-25T13:02:18Z</dc:date>
    </item>
  </channel>
</rss>

