<?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: sas mainframe in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541320#M149441</link>
    <description>and the above infile name is exact file name&lt;BR /&gt;and below the log please find the log and i'm not getting any error but i'm not able to get exact results&lt;BR /&gt;{&lt;BR /&gt;2 INFILE CLSTA2A DSD;&lt;BR /&gt;3 INPUT&lt;BR /&gt;4 @1 TEXT $CHAR60.&lt;BR /&gt;5 @61 ADDRESS_ID PIB4.&lt;BR /&gt;6 ;&lt;BR /&gt;7 LS_ADDRESS_ID = INPUT(ADDRESS_ID,$12.);&lt;BR /&gt;8 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given&lt;BR /&gt;7:23&lt;BR /&gt;&lt;BR /&gt;!&lt;BR /&gt;DATA VIG_;&lt;BR /&gt;NG: The Base Product product with which DAT&lt;BR /&gt;installation representative to have it&lt;BR /&gt;SET RAM_;&lt;BR /&gt;FILE SYSOUT;&lt;BR /&gt;PUT&lt;BR /&gt;@1 TEXT $CHAR60.&lt;BR /&gt;@61 LS_ADDRESS_ID 12.&lt;BR /&gt;;&lt;BR /&gt;}&lt;BR /&gt;The below the results i got&lt;BR /&gt;&lt;BR /&gt;LS_ADDRESS_&lt;BR /&gt;ID&lt;BR /&gt;&lt;BR /&gt;4042322160&lt;BR /&gt;4042322160&lt;BR /&gt;4042322160&lt;BR /&gt;but i don't want to print the readable format i want to be print it in non readable format like below&lt;BR /&gt;õUA000000001250545 |&lt;BR /&gt;UA000000002009688 | &amp;gt; those are the input Ls_address_id (values) non readble format&lt;BR /&gt;þUA000000002009855&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards&lt;BR /&gt;N muralikrishna</description>
    <pubDate>Fri, 08 Mar 2019 07:42:27 GMT</pubDate>
    <dc:creator>rohitkrishna</dc:creator>
    <dc:date>2019-03-08T07:42:27Z</dc:date>
    <item>
      <title>sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541313#M149435</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have query on sas mainframe, i want to convert numeric value to character value&amp;nbsp; so kindly help out for the solution&lt;/P&gt;&lt;P&gt;so please find below&amp;nbsp; the sas code and give sum suggestions { and basically my requirement are, ls_address_id variable have binary values like&amp;nbsp; "õUA000000001250545 " &amp;nbsp;&amp;nbsp; , and while reading the input i want it to be in readable format so i gave pib4 . format for that and i got the exact results and it's readable"4042322160" , now "i want to print the results in output file in a non readable format like in input " "õUA000000001250545 "&amp;nbsp; (like that) but while trying to assign $char12.&amp;nbsp; i'm getting error { ls_address_id has already defined has numeric }&lt;/P&gt;&lt;P&gt;so kindly give the solution for that&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;{1 DATA RAM_;&lt;BR /&gt;WARNING: The Base Product product with which DATASTEP is associated will expire&lt;BR /&gt;installation representative to have it renewed.&lt;BR /&gt;2 INFILE karli2a DSD;&lt;BR /&gt;3 INPUT&lt;BR /&gt;4 @1 TEXT $CHAR60.&lt;BR /&gt;5 @61 LS_ADDRESS_ID PIB4.&lt;BR /&gt;6 ;&lt;BR /&gt;7 LS_ADDRESS_ID = PUT(ADDRESS_ID,12.);&lt;BR /&gt;8 RUN;&lt;BR /&gt;Character values have been converted to numeric values at the places give&lt;BR /&gt;7:18&lt;BR /&gt;9 DATA VIG_;&lt;BR /&gt;10 SET RAM_;&lt;BR /&gt;11 FILE SYSOUT;&lt;BR /&gt;12 PUT&lt;BR /&gt;13 @1 TEXT $CHAR60.&lt;BR /&gt;14 @61 LS_ADDRESS_ID $CHAR12.&lt;BR /&gt;+ ________&lt;BR /&gt;+ ________&lt;BR /&gt;+ ________&lt;BR /&gt;48&lt;BR /&gt;+ 48&lt;BR /&gt;+ 48&lt;BR /&gt;ERROR 48-59: The format CHAR was not found or could not be loaded.&lt;BR /&gt;+ERROR 48-59: The format CHAR was not found or could not be loaded.&lt;BR /&gt;+ERROR 48-59: The format CHAR was not found or could not be loaded.&lt;/P&gt;&lt;P&gt;15 ;&lt;BR /&gt;WARNING: Variable LS_ADDRESS_ID has already been defined as numeric. }&lt;BR /&gt;thanks &amp;amp; regards&lt;BR /&gt;N muralikrishna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541313#M149435</guid>
      <dc:creator>rohitkrishna</dc:creator>
      <dc:date>2019-03-08T07:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541315#M149436</link>
      <description>&lt;P&gt;You have been given sufficient advice in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-MAINFRAME/m-p/541023" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/SAS-MAINFRAME/m-p/541023&lt;/A&gt;&amp;nbsp;already.&lt;/P&gt;
&lt;P&gt;Repeating the identical question with the same mistake won't help if you are not willing to follow our advice.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541315#M149436</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-08T07:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541316#M149437</link>
      <description>Hi, Kurtbremser,&lt;BR /&gt;Thanks for the replay&lt;BR /&gt;last day i tried your code &amp;amp; it's working&lt;BR /&gt;but my requirment was not to be read only i want to print the data in non readable format so above the code i mention inplace of put i mention input function i got the above error { I UNDERSTOOD WHAT YOU CODE I FLOWED AND IT'S WORKED BUT MY REQUIREMENT IS DIFFERENT }&lt;BR /&gt;{ DATA RAM_;&lt;BR /&gt;INFILE CLSTA2A DSD;&lt;BR /&gt;INPUT&lt;BR /&gt;@1 TEXT $CHAR60.&lt;BR /&gt;@61 ADDRESS_ID PIB4.&lt;BR /&gt;;&lt;BR /&gt;LS_ADDRESS_ID = INPUT(ADDRESS_ID,$12.);&lt;BR /&gt;RUN;&lt;BR /&gt;DATA VIG_;&lt;BR /&gt;SET RAM_;&lt;BR /&gt;FILE SYSOUT;&lt;BR /&gt;PUT&lt;BR /&gt;@1 TEXT $CHAR60.&lt;BR /&gt;@61 LS_ADDRESS_ID 12.&lt;BR /&gt;;&lt;BR /&gt;}&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;N muralikrishna&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541316#M149437</guid>
      <dc:creator>rohitkrishna</dc:creator>
      <dc:date>2019-03-08T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541317#M149438</link>
      <description>I participated in that previous discussion.  Based on that, here is a small change to make, with no further explanation.&lt;BR /&gt;&lt;BR /&gt;Make one change and one change only.  Any additional changes will cause an error.  In the last line of the top INPUT statement, remove "LS_" :&lt;BR /&gt;&lt;BR /&gt;@61 ADDRESS_ID PIB4.</description>
      <pubDate>Fri, 08 Mar 2019 07:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541317#M149438</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-08T07:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541318#M149439</link>
      <description>&lt;P&gt;Your input statement creates a&amp;nbsp;&lt;EM&gt;numeric&lt;/EM&gt; variable. To convert that to character, use the put() function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LS_ADDRESS_ID = PUT(ADDRESS_ID,12.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with a numeric output format.&lt;/P&gt;
&lt;P&gt;Next, use a&amp;nbsp;&lt;EM&gt;character&lt;/EM&gt; format for printing that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PUT
  @1 TEXT $CHAR60.
  @61 LS_ADDRESS_ID $char12.
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541318#M149439</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-08T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541320#M149441</link>
      <description>and the above infile name is exact file name&lt;BR /&gt;and below the log please find the log and i'm not getting any error but i'm not able to get exact results&lt;BR /&gt;{&lt;BR /&gt;2 INFILE CLSTA2A DSD;&lt;BR /&gt;3 INPUT&lt;BR /&gt;4 @1 TEXT $CHAR60.&lt;BR /&gt;5 @61 ADDRESS_ID PIB4.&lt;BR /&gt;6 ;&lt;BR /&gt;7 LS_ADDRESS_ID = INPUT(ADDRESS_ID,$12.);&lt;BR /&gt;8 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Numeric values have been converted to character values at the places given&lt;BR /&gt;7:23&lt;BR /&gt;&lt;BR /&gt;!&lt;BR /&gt;DATA VIG_;&lt;BR /&gt;NG: The Base Product product with which DAT&lt;BR /&gt;installation representative to have it&lt;BR /&gt;SET RAM_;&lt;BR /&gt;FILE SYSOUT;&lt;BR /&gt;PUT&lt;BR /&gt;@1 TEXT $CHAR60.&lt;BR /&gt;@61 LS_ADDRESS_ID 12.&lt;BR /&gt;;&lt;BR /&gt;}&lt;BR /&gt;The below the results i got&lt;BR /&gt;&lt;BR /&gt;LS_ADDRESS_&lt;BR /&gt;ID&lt;BR /&gt;&lt;BR /&gt;4042322160&lt;BR /&gt;4042322160&lt;BR /&gt;4042322160&lt;BR /&gt;but i don't want to print the readable format i want to be print it in non readable format like below&lt;BR /&gt;õUA000000001250545 |&lt;BR /&gt;UA000000002009688 | &amp;gt; those are the input Ls_address_id (values) non readble format&lt;BR /&gt;þUA000000002009855&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards&lt;BR /&gt;N muralikrishna</description>
      <pubDate>Fri, 08 Mar 2019 07:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541320#M149441</guid>
      <dc:creator>rohitkrishna</dc:creator>
      <dc:date>2019-03-08T07:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: sas mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541324#M149444</link>
      <description>&lt;P&gt;If you want the data to stay the same, then read 4 characters with the $char4. informat and output with the $char4. output format.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 08:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-mainframe/m-p/541324#M149444</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-08T08:08:38Z</dc:date>
    </item>
  </channel>
</rss>

