<?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 Using Prxparse to pull 2 words at same time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-Prxparse-to-pull-2-words-at-same-time/m-p/302261#M64100</link>
    <description>Hi I have this code&lt;BR /&gt;Data have&lt;BR /&gt;Infile 'C:\users\desktop \night.csv' dlm='09' X dsd truncover;;&lt;BR /&gt;Input x $25000.;&lt;BR /&gt;Length Bacode $25;&lt;BR /&gt;N+1;&lt;BR /&gt;Pid = prxparse ("/atmbarcode:\W*\w+i');&lt;BR /&gt;S=1;&lt;BR /&gt;E=length (x);&lt;BR /&gt;Call prxnext (pid,s,e,x,p,l);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do while (p&amp;gt;0),&lt;BR /&gt;Bacode =substr(x,possibly l);output;&lt;BR /&gt;Call prxnext (pid,s,e,xp,l);&lt;BR /&gt;&lt;BR /&gt;End;&lt;BR /&gt;Keep n x bacode;&lt;BR /&gt;It pulls in id number it works I need to extract a 2ndword at same time here it is&lt;BR /&gt;&lt;BR /&gt;Prxparse ('/RS [A-Z\d](15))|(?&amp;lt;=bagbarcode \W,POS-13,2),substr (x,POS-19,2));&lt;BR /&gt;RUN; HOW do I combine both prxparse to pull at same time? Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 04 Oct 2016 05:57:43 GMT</pubDate>
    <dc:creator>Beto16</dc:creator>
    <dc:date>2016-10-04T05:57:43Z</dc:date>
    <item>
      <title>Using Prxparse to pull 2 words at same time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prxparse-to-pull-2-words-at-same-time/m-p/302261#M64100</link>
      <description>Hi I have this code&lt;BR /&gt;Data have&lt;BR /&gt;Infile 'C:\users\desktop \night.csv' dlm='09' X dsd truncover;;&lt;BR /&gt;Input x $25000.;&lt;BR /&gt;Length Bacode $25;&lt;BR /&gt;N+1;&lt;BR /&gt;Pid = prxparse ("/atmbarcode:\W*\w+i');&lt;BR /&gt;S=1;&lt;BR /&gt;E=length (x);&lt;BR /&gt;Call prxnext (pid,s,e,x,p,l);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do while (p&amp;gt;0),&lt;BR /&gt;Bacode =substr(x,possibly l);output;&lt;BR /&gt;Call prxnext (pid,s,e,xp,l);&lt;BR /&gt;&lt;BR /&gt;End;&lt;BR /&gt;Keep n x bacode;&lt;BR /&gt;It pulls in id number it works I need to extract a 2ndword at same time here it is&lt;BR /&gt;&lt;BR /&gt;Prxparse ('/RS [A-Z\d](15))|(?&amp;lt;=bagbarcode \W,POS-13,2),substr (x,POS-19,2));&lt;BR /&gt;RUN; HOW do I combine both prxparse to pull at same time? Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2016 05:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prxparse-to-pull-2-words-at-same-time/m-p/302261#M64100</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-10-04T05:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prxparse to pull 2 words at same time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prxparse-to-pull-2-words-at-same-time/m-p/302265#M64101</link>
      <description>&lt;P&gt;Have a look into the example given for prxposn()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#n1lru1b4uoogqvn1ig446q4c6muu.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#n1lru1b4uoogqvn1ig446q4c6muu.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work for you then please provide a data step creating the source string and describe how the desired result needs to look like.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 06:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prxparse-to-pull-2-words-at-same-time/m-p/302265#M64101</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-04T06:15:06Z</dc:date>
    </item>
  </channel>
</rss>

