<?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 - PDw.d informat in z/OS - range of bytes in a user defined informat in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185522#M47104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; since it is numeric format and length of numeric variable in SAS is only from 3 to 8 .so I don't know if it is your reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 13:47:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-06-05T13:47:56Z</dc:date>
    <item>
      <title>proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185521#M47103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;SAS version 9.2 in z/OS&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;I can use the PDw.d informat successfully to read 4 bytes as PD4.0 and output 7 digits, and I can make a user-defined informat out of it.&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;I can use the PDw.d informat successfully to read 2 bytes as PD2.0 and output 3 digits, but I cannot make a user-defined informat out of it because SAS tries to read 4 bytes instead of 2.&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;I tried reading 1,2,3,4,5, and 6 bytes, and it can read 4,5, and 6 bytes successfully, but if I try to read 3 or fewer, it reads 4 at least. It refuses to read fewer than 4 bytes.&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 the specific code that I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; inhext other=[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"&gt;pd2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;] ; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&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;I couldn't replicate this apparent problem in Windows, but if somebody can try it in Windows, that would be be great!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 18:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185521#M47103</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-04T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185522#M47104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; since it is numeric format and length of numeric variable in SAS is only from 3 to 8 .so I don't know if it is your reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 13:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185522#M47104</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-05T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185523#M47105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the data is packed, the z/OS mainframe uses the low-order byte to store part of the number and the sign therefore the smallest packed format is 2 bytes which would give you 3 digits and the sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 14:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185523#M47105</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-06-05T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185524#M47106</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;I don't think it's related to the variable length because I can use the pd2. informat successfully outside of proc format on the same data. That's my current solution - I'm not using the user-defined informat. I'm using the pd2. informat on the input line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt; text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; varname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"&gt;pd2.&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 works, but if I try to put the pd2. into a user-defined informat&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt; text-indent: .5in;"&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN class="apple-converted-space"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;inhext other=[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"&gt;pd2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;] ; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&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; ... and then use the informat&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt; text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;INPUT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; @&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; varname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"&gt;inhext.&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; ... SAS tries to read 4 bytes instead of 2 (and I get an error because the data is not right for 4 positions)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 14:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185524#M47106</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-05T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185525#M47107</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 "online" Help says that the smallest numer of byes is 1 for PDw.d informat for z/OS using SAS 9.2&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;(1 byte or character is also the default width)&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;Also, the pd2. informat works outside of PROC FORMAT, and PDw.d works inside PROC FORMAT for 5 bytes or longer (I'm now having difficulty with 4 bytes; previously I thought that 4 bytes worked, but now it doesn't seem to work).&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 pd2. informat doesn't work for me inside the PROC FORMAT. That's why I posted this in the "SAS Procedures" area of the discussions.&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;Example of data in 2 dimensions:&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: 'Courier New';"&gt;----+---1&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: 'Courier New';"&gt;01&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: 'Courier New';"&gt;0C&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;Reading these 2 bytes of input data with a pd2. informat produces an output of 1 (numeric) using an INPUT statement, but I can't make this work inside PROC FORMAT as a 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 can read 5 bytes inside PROC FORMAT using pd5.&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: 'Courier New';"&gt;----+---1&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: 'Courier New';"&gt;00001&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: 'Courier New';"&gt;0000C&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 14:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185525#M47107</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-05T14:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc format - PDw.d informat in z/OS - range of bytes in a user defined informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185526#M47108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;PDw.d informat can read shorter-length strings than 5 bytes if it's used with a (default=&amp;nbsp; ) option in the proc format.&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;See reminders by jwillis and Jap in the &lt;A _jive_internal="true" href="https://communities.sas.com/thread/58901?start=15&amp;amp;tstart=0"&gt;Proc Format - user-defined informat PDw.d in Windows&lt;/A&gt; discussion.&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 &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; font-weight: normal;"&gt;is documented in SAS Help: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p1pmw90bl3jzgdn1w4202kclxtho.htm"&gt;FORMAT Procedure &amp;gt; INVALUE Statement&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&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;Solution for this discussion in z/OS is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 1.0pt; margin-bottom: 1.0pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: white; font-family: Helvetica, sans-serif;"&gt; &lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;inhext &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;default&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;SPAN class="apple-converted-space"&gt;other=[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;pd2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;] ; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2014 19:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-PDw-d-informat-in-z-OS-range-of-bytes-in-a-user/m-p/185526#M47108</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2014-06-28T19:34:15Z</dc:date>
    </item>
  </channel>
</rss>

