<?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: taking a single string and converting that to single column in table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87339#M18663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Ok. There must be something funky going on with either my profile or something else. I do not see a green star at all anywhere on the page. I am logged. I will try to contact the webmaster. Thanks. Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 18:09:10 GMT</pubDate>
    <dc:creator>CPAZ</dc:creator>
    <dc:date>2012-04-18T18:09:10Z</dc:date>
    <item>
      <title>taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87331#M18655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this code below, it works but not entirely. It works for the first 200 characters of the string, but not the rest. Is there a way to take the complete string? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro getqst2(wafs=);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;data work.wafs;&lt;BR /&gt;length wafer_id $4;&lt;BR /&gt;varlist=symget('wafs');&lt;BR /&gt;do until (wafer_id=' ');&lt;BR /&gt; i+1;&lt;BR /&gt; wafer_id=scan(varlist,i);&lt;BR /&gt; if wafer_id ne '' then output;&lt;BR /&gt;end;&lt;BR /&gt;drop i varlist;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wafs is passed to the macro, and here is the string: (a complete string delimited by space):&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PJP2 PJ35 PMDH PH6K PHCY PG23 PF6X PH66 PH5T PHTU PJ3Y PJ74 PHDF PLLH PJ7C PLWA PJ41 PJ3N PHJ4 PJ9H PHYA PHHP PHN8 PHTK PMR8 PMJ5 PJ55 PJ3J PMN1 PKWT PHTL PMA4 PMGH PHE1 PM69 PLY5 PJ75 PHJD PM1H PM6L PJ3T PJAY PJF8 PMJA PJHW PJF9 PHDU PL9W PJ5J PLX3 PHTE PJRH PJEY PJ34 PHP7 PHEN PJRK PN2J PJRL PJ5F PJT9 PJPA PJRM PJ57 PJ3L PHPT PMKJ PHXA PMWE PHEM PJED PJRN PJ12 PJ1K PJ39 PJ62 PJ33 PJHK PM9F PHPU PJ5E PMXP PLJJ PMXK PHJJ PJEW PL7D PJ3P PMPK PHG8 PN2L PMPF PHX9 PM71 PJ5K PJ15 PMGG PM5U PHK6 PJ7U PN5C PJ61 PH8L PM65 PMYJ PM62 PLX8 PL2A PJ6W PHNN PLXY PMJK PMUJ PJ3R PLNH PH94 PJ6G PMJ8 PMMA PMLA PMM1 PKY8 PJ4Y PJG9 PMLL PJGH PJRT PHLC PJ7A PM4D PM21 PH6J PMKM PHF1 PJ96 PHDE PHYL PMGC PJ43 PJH6 PJNW PJ2W PJCM PM7D PN4H PLXJ PHD4 PJ7R PJAH PJEX PJ8D PHK9 PHPN PHD8 PPKT PMDK PJKG PHTJ PHD5 PLDG PMLH PPT3 PP92 PRGR PP5G PMDC PHDG PLER PMPE PMHU PJF2 PNM5 PJF3 PR86 PHT9 PP8P PT3W PN1R PP83 PN2M PM2X PMLE PHDM PL14 PJ3K PMPC PMPJ PJ68 PJGA PH97 PJNR PJFP PJAT PLXD PHJU PHKL PLXM PMCW PMCH PMAH PL23 PKUR PHCL PHGM PN4K PMJC PN49 PJ56 PMC8 PMX6 PMC7 PN4P PM6N PN4D PN4C PRT4 PMYP PHGE PN23 PR2F PHW9 PRKX PRP9 PPWX PNML PT7T PR3J PR14 PRC9 PPRJ PN5F PP68 PMJR PR1Y PHGD PJ51 PHE6 PJN2 PH5Y PMKW PJAL PJE1 PPM5 PHP6 PHJ7 PJ9Y PN1Y PMH4 PMJT PNNF PMCA PHAW PPXU PM8W PMJ6 PP81 PMGE PMKK PMDD PPYG PPP1 PH93 PMT1 PHH3 PNXE PP9H PN46 PMCL PHU7 PNP5 PRHD PRKJ PHKX PJ69 PMC5 PRD2 PHP4 PHUA PN4U PNL8 PRL9 PMFN PNAR PNMX PT7D PN1L PN53 PHDN PMUA PM97 PNKY PPK6 PNFN PHKM PNRE PLWU PNKX PJ6E PNGT PLXU PN56 PHWC PR6M PN4G PP22 PR7T PH6D PNU5 PMHH PJ86 PNFX PPFL PHA5 PMKN PJP7 PNL7 PJ3X PM6E PNAU PN7J PMGM PPL3 PNLU PMWC PRHA PHJ8 PN6P PRXM PNM7 PRMC PNTL PLXX PP67 PP2T PPKP PPPJ PPXW PN9M PMKX PPLU PNJJ PLY7 PH89 PRC6 PT2E PPYT PNMG PH6A PPKA PLDD PHFU PHU9 PNL6 PR13 PM9L PPYL PHY8 PPNW PT6Y PNLD PRHJ PTDP PML1 PRL3 PJA3 PMLU PRJN PN7K PPRP PP85 PRUH PRJP PR9J PLX6 PLJE PRFY PPPL PHA3 PJ3A PR9E PR4Y PPGH PN6E PPEP PNGW PPEN PRXN PRXR PRHY PPER PJ19 PPDH PYUE PN1H PUYM PJ5M PRCP PR71 PYW9 PHH4 PMJP R114 PPTK PHRF PU74 PYUF PUUC PUN5 PNGL PUXD PNEY PU3Y PY6A PW71 PNPH PNPT PRRM PNLN PUJC PTFY PPR4 PHDL PPM7 PRU6 PMXJ PMXT PMXU PN4A PPRX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 01:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87331#M18655</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-04-18T01:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87332#M18656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is because the defalut length of character is 200, so you need to assign it a more long length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro getqst2(wafs=);&lt;/P&gt;&lt;P&gt;data work.wafs;&lt;/P&gt;&lt;P&gt;length wafer_id $4 &lt;STRONG&gt;varlist $ 32767&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;varlist=symget('wafs');&lt;/P&gt;&lt;P&gt;do until (wafer_id=' ');&lt;/P&gt;&lt;P&gt;i+1;&lt;/P&gt;&lt;P&gt;wafer_id=scan(varlist,i);&lt;/P&gt;&lt;P&gt;if wafer_id ne '' then output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i varlist;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 05:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87332#M18656</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-04-18T05:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87333#M18657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm possibly missing something here, but: Why in first place do you need to assign the macro variable to a SAS variable? Wouldn't code like below work as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro getqst2(wafs=);&lt;BR /&gt;&amp;nbsp; data work.wafs;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length wafer_id $20;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do until (wafer_id=' ');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _i+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wafer_id=scan("&amp;amp;wafs",_i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wafer_id ne '' then output;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop _:;&lt;BR /&gt;&amp;nbsp; run;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%getqst2(wafs=PJP2 PJ35 PMDH PH6K PHCY PG23)&lt;/P&gt;&lt;P&gt;proc print data=work.wafs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and in case above code is o.k: Do you really need a macro or would code like below be sufficient?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* without a macro */&lt;/P&gt;&lt;P&gt;%let wafs=PJP2 PJ35 PMDH PH6K PHCY PG23;&lt;/P&gt;&lt;P&gt;data work.wafs2;&lt;BR /&gt;&amp;nbsp; length wafer_id $20;&lt;BR /&gt;&amp;nbsp; do until (wafer_id=' ');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _i+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wafer_id=scan("&amp;amp;wafs",_i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wafer_id ne '' then output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; drop _:;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=work.wafs2;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 09:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87333#M18657</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-04-18T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87334#M18658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another macro approach, if you list were to ever exceed ~6553 wafer_id's the data step will not work since it will be longer the 32,767.&amp;nbsp; This approach will work for up to about 13,106 wafer_id's since the max length for macro variable is 65,534.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro getqst2(wafs=);&lt;/P&gt;&lt;P&gt; proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table wafs ( wafer_id char(4) );&lt;/P&gt;&lt;P&gt;&amp;nbsp; %do i=1 %to %sysfunc(countw(&amp;amp;wafs));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; insert into wafs ( wafer_id ) values ( "%scan(&amp;amp;wafs,&amp;amp;i)" );&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt; quit;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%getqst2(wafs=PJP2 PJ35 PMDH PH6K PHCY PG23 PF6X PH66 PH5T PHTU PJ3Y);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87334#M18658</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-04-18T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87335#M18659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks KSharp and all. All of these soultions work. I do not see an obvious way to tag this discussion as "answered".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 17:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87335#M18659</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-04-18T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87336#M18660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CPAZ,&lt;/P&gt;&lt;P&gt;after you select one as correct answer and two as helpful answers then the discussuon is marked as "answered".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 17:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87336#M18660</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-18T17:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87337#M18661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Linlin, Sorry for the stupid reply, but I do not see how to mark the replies as "correct answer". I am logged in but still do not see how to do it. Thanks, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 17:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87337#M18661</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-04-18T17:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87338#M18662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;After you log in, look for the &lt;STRONG style="color: #00ff00;"&gt;&lt;SPAN style="font-size: 18pt;"&gt;green &lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;star, then click it.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87338#M18662</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-18T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87339#M18663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Ok. There must be something funky going on with either my profile or something else. I do not see a green star at all anywhere on the page. I am logged. I will try to contact the webmaster. Thanks. Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87339#M18663</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-04-18T18:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87340#M18664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one more method, using array, just because.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %let wafs=PJP2 PJ35 PMDH PH6K PHCY PG23 PF6X PH66 PH5T PHTU PJ3Y;&lt;/P&gt;&lt;P&gt; data wafs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array w[%sysfunc(countw(&amp;amp;wafs))] $ _temporary_ ("%sysfunc(tranwrd(&amp;amp;wafs,%str( ),%str(" ")))");&lt;/P&gt;&lt;P&gt;&amp;nbsp; do _n_=1 to dim(w);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wafer_id=w[_n_];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87340#M18664</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-04-18T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87341#M18665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks all of these suggestions work. I am figuring out why I can't see the selection for "correct answer" or "Helpful hint". I woul dlike ot give credit for those who have helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87341#M18665</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-04-18T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87342#M18666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last example.&amp;nbsp; Some may find this interesting as a fairly unique approach.&amp;nbsp; I will use the APP functions to insert the string to the array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %let wafs=PJP2 PJ35 PMDH PH6K PHCY PG23 PF6X PH66 PH5T PHTU PJ3Y;&lt;/P&gt;&lt;P&gt; data wafs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array w[%sysfunc(countw(&amp;amp;wafs))] $ 5 _temporary_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call pokelong("&amp;amp;wafs",addrlong(w[1]));&lt;/P&gt;&lt;P&gt;&amp;nbsp; do _n_=1 to dim(w);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wafer_id=w[_n_];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I normally do not share code using these 'controversial' functions but as I use them more and more in my own production work I feel more compelled to share possible uses for them.&amp;nbsp; At the SAS Global Forum this year Paul Dorfman and William Viergever have an excellent paper detailing uses of these functions, there are a few other papers about them as well which I highly recommend to anyone concerned with advanced SAS programming to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="TableData" href="http://sgf2012.confnav.com/sgf2012/web/sessions/date/view.html#20111204163010322186000000" style="font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #000000; text-align: -webkit-auto; background-color: #d7ead0;"&gt;&lt;STRONG&gt;Straight from Memory: ADDR, PEEK, POKE as SAS Programming Tools&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: #d7ead0;"&gt;Paul Dorfman, Paul Dorfman Consulting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: #d7ead0;"&gt;William Viergever, Viergever &amp;amp; Associates&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87342#M18666</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-04-18T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87343#M18667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FE,&lt;/P&gt;&lt;P&gt;Thank you for sharing. I will definitely read the paper. - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87343#M18667</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-18T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87344#M18668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FriedEgg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know when the full-text paper will be published online? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haiuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 19:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87344#M18668</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-04-18T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87345#M18669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty much all other papers for this years proceedings are already avaiable here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings12/"&gt;http://support.sas.com/resources/papers/proceedings12/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct to the paper I mentioned:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings12/223-2012.pdf" title="http://support.sas.com/resources/papers/proceedings12/223-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/223-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 19:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87345#M18669</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-04-18T19:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87346#M18670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have so much data in a macro variable?&amp;nbsp; How is the macro variable assigned?&amp;nbsp; Seems like there are much better places to keep data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 20:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87346#M18670</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-18T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87347#M18671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;FriedEgg wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I normally do not share code using these 'controversial' functions&lt;/P&gt;
 &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked in Functions and CALL Routines by Category&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245860.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245860.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but there was no "Controversial" category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;BR /&gt; &lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 20:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87347#M18671</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-18T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: taking a single string and converting that to single column in table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87348#M18672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically I was referring to the following ominous piece of the documentation for SAS under the POKE&amp;lt;LONG&amp;gt; Call routine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="caution" style="margin-top: 1.4em; font-weight: bold; color: #cc0000;"&gt;CAUTION:&lt;/SPAN&gt;&lt;SPAN class="strong" style="font-weight: bold;"&gt;The CALL POKE routine is intended only for experienced programmers in specific cases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1.4em;"&gt;&lt;A name="a000849963" style="font-family: inherit;"&gt;&lt;/A&gt;If you plan to use this routine, use extreme care both in your programming and in your typing. Writing directly into memory can cause devastating problems. This routine bypasses the normal safeguards that prevent you from destroying a vital element in your SAS session or in another piece of software that is active at the time.&amp;nbsp;&amp;nbsp; &lt;IMG align="bottom" alt="[cautionend]" border="0" class="jiveImage" src="http://support.sas.com/documentation/cdl/en/common/63294/HTML/default/images/cautend.gif" style="font-family: inherit;" /&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1.4em;"&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000127816.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000127816.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000127816.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1.4em;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1.4em;"&gt;That was very funny though &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 20:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/taking-a-single-string-and-converting-that-to-single-column-in/m-p/87348#M18672</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-04-18T20:30:35Z</dc:date>
    </item>
  </channel>
</rss>

