<?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 Scan for non-printable EBCDIC Characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305770#M65263</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work with SAS on z/OS, and I was wondering if anyone had a recommendation on setting up a scan for non-printable EBCDIC characters from an incoming dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 20:28:15 GMT</pubDate>
    <dc:creator>SASuser28</dc:creator>
    <dc:date>2016-10-19T20:28:15Z</dc:date>
    <item>
      <title>Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305770#M65263</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work with SAS on z/OS, and I was wondering if anyone had a recommendation on setting up a scan for non-printable EBCDIC characters from an incoming dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 20:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305770#M65263</guid>
      <dc:creator>SASuser28</dc:creator>
      <dc:date>2016-10-19T20:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305811#M65289</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T;
  length STR1 STR2 STR3 $256;
  do I=0 to 255;
    STR1=cats(STR1,byte(I));
  end;
  STR2=prxchange('s/[^[:graph:]]//',-1,STR1);   
  STR3=prxchange("s/[^ a-i j-r ~-z {-I }-R S-Z 0-9 \x4A-\x4E \x5A-\x5F \x6A-\x6F \x79-\x7F &amp;amp;\/\-\\]//",-1,STR1);   
  putlog STR1= / STR2= / STR3=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The posix character class can't deal with EBCDIC it seems, but spelling out the characters to keep works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STR1= &amp;#1;&amp;#3;€ ‚&amp;#127;ƒ&amp;#141;„&lt;BR /&gt; &amp;#12;&amp;#14;&amp;#15;&amp;#16;&amp;#17;&amp;#18;&amp;#19;&amp;#157;&amp;#8;…&amp;#24;&amp;#25;†&amp;#143;&amp;#28;　-‡&amp;#129;ˆ‰Š‹&amp;#23;&amp;#27;ŒŽ‘’"&amp;#6;&amp;#7;&amp;#144;"&amp;#22;•–—˜&amp;#4;™š›œ&amp;#20;&amp;#21;ž&amp;nbsp;âäàáãåçñ¢.&amp;lt;(+|&amp;amp;éêëèíîïìß!$*);^-/ÂÄÀÁÃÅÇÑ¦,%_&amp;gt;?øÉÊËÈÍÎÏÌ`:#@'="Øabcdefg&lt;/P&gt;
&lt;P&gt;hi«»ðýþ±°jklmnopqrªºæ¸Æ¤µ~stuvwxyz¡¿Ð[Þ®¬£¥·©§¶¼½¾Ý¨¯]´×{ABCDEFGHI­ôöòóõ}JKLMNOPQR¹ûüùúÿ\÷STUVWXYZ²ÔÖÒÓÕ0123456789³ÛÜÙÚŸ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STR2=âäàáãåçñ¢.&amp;lt;(+|&amp;amp;éêëèíîïìß!$*);^-/ÂÄÀÁÃÅÇÑ¦,%_&amp;gt;?øÉÊËÈÍÎÏÌ`:#@'="Øabcdefghi«»ðýþ±°jklmnopqrªºæ¸Æ¤µ~stuvwxyz¡¿Ð[Þ®¬£¥·©§¶¼½¾Ý¨¯]´×{ABCDEFGH&lt;/P&gt;
&lt;P&gt;Iôöòóõ}JKLMNOPQR¹ûüùúÿ\÷STUVWXYZ²ÔÖÒÓÕ0123456789³ÛÜÙÚ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STR3=¢.&amp;lt;(+&amp;amp;!$*);^-/¦,%_&amp;gt;?`:#@'="abcdefghijklmnopqr~stuvwxyz{ABCDEFGHI}JKLMNOPQR\STUVWXYZ0123456789&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 22:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305811#M65289</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-19T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305814#M65292</link>
      <description>&lt;P&gt;That's great. I was hoping someone would reply back using a PRX function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 22:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/305814#M65292</guid>
      <dc:creator>SASuser28</dc:creator>
      <dc:date>2016-10-19T22:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306009#M65372</link>
      <description>&lt;P&gt;If you want to remove everything that is non-printable COMPRESS would be&amp;nbsp;easy enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compress(str1,,'kw')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306009#M65372</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-10-20T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306067#M65392</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ﻿&lt;/a&gt;&amp;nbsp;you're missing one character from&amp;nbsp;STR1 do you know why?&amp;nbsp; Which one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a good example for using SUBSTR on the LEFT or better still COLLATE to gen the entire string&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;substr(str1,i+1,1)=byte(I);

collate(0,256);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306067#M65392</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-10-20T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306069#M65394</link>
      <description>&lt;P&gt;Thanks data_null_!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306069#M65394</guid>
      <dc:creator>SASuser28</dc:creator>
      <dc:date>2016-10-20T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306084#M65400</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__﻿&lt;/a&gt; Thanks for your input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- It doesnt matter a space is missing from the example output.That's not the point. &lt;BR /&gt;I must use collate more though, Thanks for the reminder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- STR4=compress(STR1,,'kw');&amp;nbsp; gives the same resut as the posix expression in STR2. Not good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306084#M65400</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-20T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306091#M65403</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt; Thanks for your input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- It doesnt matter a space is missing from the example output.That's not the point. &lt;BR /&gt;I must use collate more though, Thanks for the reminder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- STR4=compress(STR1,,'kw');&amp;nbsp; gives the same resut as the posix expression in STR2. Not good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1.&amp;nbsp; I didn't say it was the point I just ask if you which and why.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; I guess it depends on your definition of printable.&amp;nbsp; Seems like your are defining printable characters as characters on the keyboard "type-able" and I could understand where that might be useful but I don't think that's what is being asked.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306091#M65403</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-10-20T20:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306108#M65408</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__﻿&lt;/a&gt;&amp;nbsp;EBCDIC has 95 printable characters and that's it. Not the 190 that compress() lets through. If not, I want to learn more. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 21:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306108#M65408</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-20T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scan for non-printable EBCDIC Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306970#M65703</link>
      <description>&lt;P&gt;I would call this a defect actually. Why on earth does the compress function on Z/OS use the posix character list?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scan-for-non-printable-EBCDIC-Characters/m-p/306970#M65703</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-24T21:13:02Z</dc:date>
    </item>
  </channel>
</rss>

