<?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: negative values to cobol pack values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746684#M234264</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/381837"&gt;@Jose7&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p1eqelwl24ii2vn12twzohqsrotz.htm" target="_blank" rel="noopener"&gt;VMSZN&lt;EM&gt;w.d&lt;/EM&gt; format&lt;/A&gt; looks promising:&lt;/P&gt;
&lt;PRE&gt;50   data _null_;
51   array x[3] (-180 -323 -567);
52   put x1 z8. +1 x1 vmszn7. /
53       x2 z7. +2 x2 vmszn6. /
54       x3 z7. +2 x3 vmszn6.;
55   run;

-0000180 000018p
-000323  00032s
-000567  00056w&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Jun 2021 08:04:31 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-06-09T08:04:31Z</dc:date>
    <item>
      <title>negative values to cobol pack values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746640#M234238</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have this value&amp;nbsp; "-0000180" and i want to transform it into "000018p", where p simbolize the negative value for cobol according to this equivalents:&lt;/P&gt;&lt;P&gt;0=p&amp;nbsp; 1=q&amp;nbsp; 2=r&amp;nbsp; 3=s&amp;nbsp; 4=t&amp;nbsp; 5=u&amp;nbsp; 6=v&amp;nbsp; 7=w&amp;nbsp; 8=x&amp;nbsp; 9=y&lt;/P&gt;&lt;P&gt;i have to sustitute the last digit of the negative value by the corresponding letter and keep the zeroes to the left,&amp;nbsp; examples:&lt;/P&gt;&lt;P&gt;-000323 = 00032s&lt;/P&gt;&lt;P&gt;-000567 = 00056w&lt;/P&gt;&lt;P&gt;Do you have any idea to do it ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 01:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746640#M234238</guid>
      <dc:creator>Jose7</dc:creator>
      <dc:date>2021-06-09T01:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: negative values to cobol pack values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746643#M234240</link>
      <description>&lt;P&gt;I don't believe you need to do it manually.&amp;nbsp; Have you looked at the S370 series of formats?&amp;nbsp; Those are intended to be used for mainframe compatible numeric formats.&amp;nbsp; I believe S370FPD would be the format you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, take a look at this link:&amp;nbsp;&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p17nnhja9pspodn1k6nfdop68xwk.htm#p1txhhnw0zpzfjn1le1hlap0dapk" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p17nnhja9pspodn1k6nfdop68xwk.htm#p1txhhnw0zpzfjn1le1hlap0dapk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 02:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746643#M234240</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-09T02:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: negative values to cobol pack values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746684#M234264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/381837"&gt;@Jose7&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p1eqelwl24ii2vn12twzohqsrotz.htm" target="_blank" rel="noopener"&gt;VMSZN&lt;EM&gt;w.d&lt;/EM&gt; format&lt;/A&gt; looks promising:&lt;/P&gt;
&lt;PRE&gt;50   data _null_;
51   array x[3] (-180 -323 -567);
52   put x1 z8. +1 x1 vmszn7. /
53       x2 z7. +2 x2 vmszn6. /
54       x3 z7. +2 x3 vmszn6.;
55   run;

-0000180 000018p
-000323  00032s
-000567  00056w&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/negative-values-to-cobol-pack-values/m-p/746684#M234264</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-06-09T08:04:31Z</dc:date>
    </item>
  </channel>
</rss>

