<?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 PROBLEM IN DATA INTEGRATION STUDIO in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59073#M16626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; finding regex kind of unfathomable:smileyconfused: I like to see how complex an alternative might be. &lt;/P&gt;&lt;P&gt;The following uses the VERIFY() function to locate the first character that is not a zero and uses that position for substringing. Should there be only zeros the function returns 0 as the position, which is a problem for substr(). I assumed the value should become blank when entirely filled with zeros, but if another value is more appropriate then the change to the code should be straightforward.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;Using Art's test data, extended for some special cases (alphabeticals, no zeros and only zeros) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; zero $&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; zero $ name $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00124 ancd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00002154 cdsfs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;000245755 aswda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;000100245 cdsew&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00a00 678&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;ASDFG FGHJKL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;0000000000 ertyui&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; want &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt; select&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; case &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; compress( zero,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; ) EQ &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;' '&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; substr( zero, verify( zero, &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end length= &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;10&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; notZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , zero&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2011 16:08:37 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-12-04T16:08:37Z</dc:date>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59070#M16623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these values from the PRODUCT_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COD_PROD&lt;/P&gt;&lt;P&gt;000042568&lt;/P&gt;&lt;P&gt;000003690&lt;/P&gt;&lt;P&gt;0000086M5&lt;/P&gt;&lt;P&gt;0000JI8710&lt;/P&gt;&lt;P&gt;00008971M&lt;/P&gt;&lt;P&gt;000M564M1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a new variable with these values&lt;/P&gt;&lt;P&gt;COD_PROD_NEW&lt;/P&gt;&lt;P&gt;42568&lt;/P&gt;&lt;P&gt;3690&lt;/P&gt;&lt;P&gt;86M5&lt;/P&gt;&lt;P&gt;JI8710&lt;/P&gt;&lt;P&gt;8971M&lt;/P&gt;&lt;P&gt;M564M1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO TAKE THE&amp;nbsp; ZEROS OUT OF THE BEGINNING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE PROBLEM IS THAT I'm using D.I (Data Integration).&amp;nbsp; I AM NEW IN D.I AND I SEEMS THAT I CANNOT USE LOOP AND NOT DATA STEP. ONLY PROC SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 16:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59070#M16623</guid>
      <dc:creator>Augusto</dc:creator>
      <dc:date>2011-12-02T16:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59071#M16624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you can use proc sql, you could use a regular expression.&amp;nbsp; E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;﻿&amp;nbsp; length zero $10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input zero $ name $; &lt;/P&gt;&lt;P&gt;&amp;nbsp; cards; &lt;/P&gt;&lt;P&gt;00124 ancd &lt;/P&gt;&lt;P&gt;00002154 cdsfs &lt;/P&gt;&lt;P&gt;000245755 aswda &lt;/P&gt;&lt;P&gt;000100245 cdsew &lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select prxchange("s/^0+//", 1, zero) as zero, name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 16:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59071#M16624</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-02T16:41:29Z</dc:date>
    </item>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59072#M16625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Art very very good. You are the best. thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 16:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59072#M16625</guid>
      <dc:creator>Augusto</dc:creator>
      <dc:date>2011-12-02T16:58:34Z</dc:date>
    </item>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59073#M16626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; finding regex kind of unfathomable:smileyconfused: I like to see how complex an alternative might be. &lt;/P&gt;&lt;P&gt;The following uses the VERIFY() function to locate the first character that is not a zero and uses that position for substringing. Should there be only zeros the function returns 0 as the position, which is a problem for substr(). I assumed the value should become blank when entirely filled with zeros, but if another value is more appropriate then the change to the code should be straightforward.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;Using Art's test data, extended for some special cases (alphabeticals, no zeros and only zeros) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; zero $&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;10&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; zero $ name $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00124 ancd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00002154 cdsfs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;000245755 aswda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;000100245 cdsew&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;00a00 678&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;ASDFG FGHJKL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: Sasfont; color: black; font-size: 9pt;"&gt;0000000000 ertyui&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; want &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt; select&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; case &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; compress( zero,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; ) EQ &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;' '&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; substr( zero, verify( zero, &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: purple; font-size: 9pt;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end length= &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;10&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; notZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , zero&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: Sasfont; color: blue; font-size: 9pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt; have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background-color: white; font-family: Sasfont;"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Sasfont; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 16:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59073#M16626</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-12-04T16:08:37Z</dc:date>
    </item>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59074#M16627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, in this case, using verify actually produces code that runs faster.&amp;nbsp; However, if it were a more complex pattern than just "beginning with zeros", I think that the potential functionality of regex might be difficult to duplicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, IMHO, both are useful tools and worth learning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 16:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59074#M16627</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-04T16:41:14Z</dc:date>
    </item>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59075#M16628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; art i have a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why to use these values &lt;STRONG&gt;"s/^0+//" &lt;/STRONG&gt;for prxchange function?&lt;/P&gt;&lt;P&gt;Does this parameter will be always like that?, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see why use the value for 0 but how about the&lt;STRONG&gt; s/^+//&lt;/STRONG&gt;? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to handle with all special characters.&amp;nbsp; Just using these values is enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid of missing or cut off other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2011 13:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59075#M16628</guid>
      <dc:creator>Augusto</dc:creator>
      <dc:date>2011-12-23T13:56:18Z</dc:date>
    </item>
    <item>
      <title>PROBLEM IN DATA INTEGRATION STUDIO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59076#M16629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Augusto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the documentation at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002291852.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002291852.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003288497.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003288497.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the statement, from left to right, indicates the following (although realize that I, too, am just learning these functions, thus my terminology may not be correct):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "s/whatever/ is indicating &lt;/P&gt;&lt;P&gt;&amp;nbsp; s/&amp;nbsp; that the definition of what we want to find follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&amp;nbsp;&amp;nbsp;&amp;nbsp; that we are only looking at the start of the string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 0+ for any number of zeros at the start of the string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp; that the above represents what we are looking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; that we want the part of the string we defined to be replaced with nothing (i.e., removed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, all it is doing is removing any zeros that may exist at the start of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2011 14:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROBLEM-IN-DATA-INTEGRATION-STUDIO/m-p/59076#M16629</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-23T14:24:05Z</dc:date>
    </item>
  </channel>
</rss>

