<?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: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943658#M42401</link>
    <description>&lt;P&gt;So you do not read a file, you write one.&lt;/P&gt;
&lt;P&gt;Since you do run this code on a non-mainframe platform, using the S370... formats is in order:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p1axbgkkwfpgljn1qghqseckmlrd.htm" target="_blank" rel="noopener"&gt;S370FPDw.d Format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/n1ieal1t8dllgen119h6hmimtlu6.htm" target="_blank" rel="noopener"&gt;S370FIBw.d Format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that, for this to be read on the mainframe, all transfers have to be done in binary mode.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 15:00:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-09-12T15:00:23Z</dc:date>
    <item>
      <title>trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943577#M42394</link>
      <description>&lt;P&gt;Trying to convert PD 6.2 to integer from mainframe to SAS EG environment.&lt;/P&gt;
&lt;P&gt;PUT @0321 INC_AM PD6.2 @@;&lt;BR /&gt;IF MO_PMT_AM = .&amp;nbsp;&lt;BR /&gt;PUT @0327 '?' @@;&lt;BR /&gt;ELSE&lt;BR /&gt;PUT @0327 MO_PMT_AM PD6.2 @@;&lt;BR /&gt;IF PMT_AM = .&amp;nbsp;&lt;BR /&gt;PUT @0333 '?' @@;&lt;BR /&gt;ELSE&lt;BR /&gt;PUT @0333 PMT_AM PD4.8 @@;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 22:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943577#M42394</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2024-09-11T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943578#M42395</link>
      <description>&lt;P&gt;You will need to explain much more about what you are doing.&lt;/P&gt;
&lt;P&gt;Do you have a BINARY file that has values in packed decimal that you want to READ?&lt;/P&gt;
&lt;P&gt;Do you have a DATASET that you want to use to create a BINARY file that has packed decimal in it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the front end tool Enterprise Guide have to do with the problem?&lt;/P&gt;
&lt;P&gt;Where is the SAS sessions that you are using EG to create running?&amp;nbsp; Are they running on the same machine where you are running EG?&amp;nbsp; Or are you connecting to some server?&amp;nbsp; What operating system is that server running?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 22:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943578#M42395</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-11T22:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943591#M42397</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Do you have a BINARY file that has values in packed decimal that you want to READ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes I have a binary file which is in the mainframe environment which I am reading and want to&amp;nbsp; migrate the same code into SAS EG environment and where I want to write.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But since the code is in Mainframe environment and wanting to rewrite the&amp;nbsp; the SAS code in SAS EG ,am facing issue with variable which contain&amp;nbsp;PD 6.2&amp;nbsp; format&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 05:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943591#M42397</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2024-09-12T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943601#M42398</link>
      <description>&lt;P&gt;EG is only a frontend to the SAS system; the important fact is where the SAS workspace server runs.&lt;/P&gt;
&lt;P&gt;Is the WS local on the same computer with EG, or on a remote server?&lt;/P&gt;
&lt;P&gt;And if a remote server, which operating system? Windows, UNIX, or even the same mainframe you already use?&lt;/P&gt;
&lt;P&gt;Note that the (syntactically invalid, BTW) example code you posted&amp;nbsp;&lt;EM&gt;writes&lt;/EM&gt; a file, it does not&amp;nbsp;&lt;EM&gt;read&lt;/EM&gt; it.&lt;/P&gt;
&lt;P&gt;Please post the complete mainframe code which reads a file on the mainframe.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 08:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943601#M42398</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-12T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943602#M42399</link>
      <description>&lt;P&gt;This is how the code looks like.&lt;BR /&gt;I want to write the same code in Linux ,but variable which have PD6.2 and IB2value is not giving proper output.&lt;/P&gt;
&lt;P&gt;DATA _NULL_;&lt;/P&gt;
&lt;P&gt;SET PCE_PURCH ;&lt;/P&gt;
&lt;P&gt;IF VALIDID = 'Y' THEN&lt;BR /&gt;DO;&lt;/P&gt;
&lt;P&gt;FILE OUTFILE NOTITLES;&lt;BR /&gt;PUT @0309 MO_WRK_PER_YR_NB IB2. @@;&lt;BR /&gt;IF GRS_MO_INC_AM = . THEN&lt;BR /&gt;PUT @0311 '?' @@;&lt;BR /&gt;ELSE&lt;BR /&gt;PUT @0311 GRS_MO_INC_AM PD6.2 @@;&lt;BR /&gt;IF GRS_MO_INC_VRFY_AM = . THEN&lt;BR /&gt;PUT @0317 '?' @@;&lt;BR /&gt;ELSE&lt;/P&gt;
&lt;P&gt;PUT @0321 OTH_MO_INC_AM PD6.2 @@;&lt;BR /&gt;Else &lt;BR /&gt;IF OTH_MO_PMT_AM = . THEN&lt;BR /&gt;PUT @0327 '?' @@;&lt;BR /&gt;ELSE&lt;BR /&gt;PUT @0327 OTH_MO_PMT_AM PD6.2 @@;&lt;BR /&gt;IF RENT_MTGE_PMT_AM = . THEN&lt;BR /&gt;PUT @0333 '?' @@;&lt;BR /&gt;ELSE&lt;BR /&gt;PUT @0333 RENT_MTGE_PMT_AM PD6.2 @@;&lt;BR /&gt;IF CNTRCT_MO_TERM_NB = . THEN&lt;BR /&gt;PUT @0339 '?' @@;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 08:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943602#M42399</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2024-09-12T08:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: trying to convert PD 6.2 to integer  from mainframe to  SAS EG environment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943658#M42401</link>
      <description>&lt;P&gt;So you do not read a file, you write one.&lt;/P&gt;
&lt;P&gt;Since you do run this code on a non-mainframe platform, using the S370... formats is in order:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p1axbgkkwfpgljn1qghqseckmlrd.htm" target="_blank" rel="noopener"&gt;S370FPDw.d Format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/n1ieal1t8dllgen119h6hmimtlu6.htm" target="_blank" rel="noopener"&gt;S370FIBw.d Format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that, for this to be read on the mainframe, all transfers have to be done in binary mode.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/trying-to-convert-PD-6-2-to-integer-from-mainframe-to-SAS-EG/m-p/943658#M42401</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-12T15:00:23Z</dc:date>
    </item>
  </channel>
</rss>

