<?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: Blank in variable name? Trying to break the rules...... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135198#M260997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PGStats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end-goal of my code is to prepare a .txt file to be fed into a model. The multi- vs single- value rows issue is somewhat arbitrary and is model-dependent, so I don't have a clear-cut rule to give you. Starting at observation 4 is also model-driven. Mind you, however, that none of the two issues that you raise are related to my original question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 19:08:44 GMT</pubDate>
    <dc:creator>maroulator</dc:creator>
    <dc:date>2014-09-08T19:08:44Z</dc:date>
    <item>
      <title>Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135191#M260990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attached NCDebt.csv file is the input file for the code in the attached .txt file labelled "Code." The code runs the way that I want it to, but I have the following item that I need to address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Desired Output.txt" file is not generated by the code, however, it holds the structure that I want my Code-generated output to follow; you will notice similarities in the structure of the output generated once you run the code and the structure of the contents in the "Desired Output.txt file." My problem is that I cannot think of a way to write SAS code such that I can add the 'end' line found at the bottom of the Desired Output.txt file. I have commented out the "End='end'" line in the second datastep of my Code (this was my last ditch effort); when I transpose in the proc step, however, I am still stuck with the variable name End, which I don't want. Ideally, I would have a blank in the variable name and retain the value 'end.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any takers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135191#M260990</guid>
      <dc:creator>maroulator</dc:creator>
      <dc:date>2014-09-08T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135192#M260991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file 'Your desired output file name goes here';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Ncdebt3 (end= last);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _all_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if last then put 'End';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 17:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135192#M260991</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-08T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135193#M260992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I tried the following; still no go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Ncdebt3 end= last;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _all_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if last then put 'end';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135193#M260992</guid>
      <dc:creator>maroulator</dc:creator>
      <dc:date>2014-09-08T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135194#M260993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Still no go" is not a very good description of what you got!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135194#M260993</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-08T18:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135195#M260994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PGStats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies; by "still no go" I meant that I did not achieve my desired result; the Ncdebt3 dataset in my code above remains unchanged. I attach my log if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135195#M260994</guid>
      <dc:creator>maroulator</dc:creator>
      <dc:date>2014-09-08T18:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135196#M260995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is obs #3 skipped (with firstobs=4)? Why would there be only 6 values present in the multi-valued rows of Desired Output.txt? What would make some rows multi-values and others not, in Desired Output.txt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135196#M260995</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-08T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135197#M260996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code I posted is NOT intended to create a dataset but an output TEXT file which was sort of implied by the use of "desired output text" as the zip file demonstrated. If you want a data set then some more specific description of the output is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 18:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135197#M260996</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-08T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135198#M260997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PGStats,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end-goal of my code is to prepare a .txt file to be fed into a model. The multi- vs single- value rows issue is somewhat arbitrary and is model-dependent, so I don't have a clear-cut rule to give you. Starting at observation 4 is also model-driven. Mind you, however, that none of the two issues that you raise are related to my original question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135198#M260997</guid>
      <dc:creator>maroulator</dc:creator>
      <dc:date>2014-09-08T19:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Blank in variable name? Trying to break the rules......</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135199#M260998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: SAS Monospace;"&gt;Sorry about the put _all_ error. This may come closer, change the name of the file to what you want for your text file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; data &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: SAS Monospace;"&gt;'d:\data\output.txt'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; work.Ncdebt3 end= last;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; _NAME_ col1-col9;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; last &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: SAS Monospace;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: SAS Monospace;"&gt;'End'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;I suspect the unwanted END variable is occurring because of the RETAIN statement when creating NCDebt2. I removed that from the data step then ran the transpose code and the above.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 21:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blank-in-variable-name-Trying-to-break-the-rules/m-p/135199#M260998</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-08T21:55:00Z</dc:date>
    </item>
  </channel>
</rss>

