title: split a string using a word delimiter in sas
body: <p>I'm looking for a way to split a very long string using this delimiter : <code>'| '</code></p>
  
  <p>The scan function doesn't seem to accept word delimiter so if I do</p>
  
  <pre><code>scan(string,3,'| ')
  </code></pre>
  
  <p>it will split at every <code>|</code> and space<br>
  instead of at every <code>'| '</code> like I need.</p>
  
  <p>In the documentation I don't see any modifier allowing this. <a href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm" rel="nofollow">http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm</a></p>