<?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: Newbie question about put option. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175630#M264646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pointer control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;put TestA +(-1) 'heyman';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;When you use LIST-PUT as you have here SAS adds a space after the last value.&amp;nbsp; You just need to back up.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 16:18:01 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-05-28T16:18:01Z</dc:date>
    <item>
      <title>Newbie question about put option.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175629#M264645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone. I am trying to write code to a txt file, and in doing some I ran into an interesting question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;How do you write a vairable from a dataset to a file, concatenate with a string WITHOUT a space occuring between them?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, if you had the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data person;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile datalines delimiter=',' dsd missover; &lt;BR /&gt;informat TESTA $300.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input TestA;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;BR /&gt;Testthis&lt;BR /&gt;one&lt;BR /&gt;one&lt;BR /&gt;ONe1&lt;BR /&gt;twoone&lt;BR /&gt;heyman&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename codeTest 'C:\urdesktop\codecreation.txt' ;&lt;BR /&gt;/*could use a data _null_ step here*/&lt;BR /&gt;data Testhutto;&lt;BR /&gt;set person;&lt;BR /&gt; file codeTest lrecl=20000 ;&lt;BR /&gt;put TestA'heyman';&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would give you a text file that has the variable, folowed by a space, and then the string 'heyman'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO you would get.&lt;/P&gt;&lt;P&gt;Testthis heyman&lt;/P&gt;&lt;P&gt;one heyman&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I WANT is&lt;/P&gt;&lt;P&gt;TestthisHeyman&lt;/P&gt;&lt;P&gt;oneHeyman&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want the space (as the code has no space in it).&amp;nbsp; Does anyone know the option to get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175629#M264645</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2014-05-28T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question about put option.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175630#M264646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pointer control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;put TestA +(-1) 'heyman';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;When you use LIST-PUT as you have here SAS adds a space after the last value.&amp;nbsp; You just need to back up.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175630#M264646</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-05-28T16:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question about put option.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175631#M264647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;+(-1) between the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Testhutto;&lt;/P&gt;&lt;P&gt;set person;&lt;/P&gt;&lt;P&gt; file codeTest lrecl=20000 ;&lt;/P&gt;&lt;P&gt;put TestA +(-1) 'heyman';&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175631#M264647</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-28T16:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question about put option.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175632#M264648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh that's awesome! Thanks very much I will apply that across the places I want the varialbes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for, thanks to both of your for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175632#M264648</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2014-05-28T16:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question about put option.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175633#M264649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try "+(-1)":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; a='Hello';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put a "world";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put a +(-1) "world";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giving:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Hello world&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Helloworld&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"+(-1)" tells the output pointer to go back one position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 16:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Newbie-question-about-put-option/m-p/175633#M264649</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-05-28T16:21:09Z</dc:date>
    </item>
  </channel>
</rss>

