<?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 Write a Blank Line using Put in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17553#M3340</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This may sound stupid.  How do I write a blank line to my output file using PUT?&lt;BR /&gt;
I tried "put @1 "    ";" and "put;" but it didn't work.  Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
KevinC.</description>
    <pubDate>Tue, 13 May 2008 17:09:14 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2008-05-13T17:09:14Z</dc:date>
    <item>
      <title>Write a Blank Line using Put</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17553#M3340</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This may sound stupid.  How do I write a blank line to my output file using PUT?&lt;BR /&gt;
I tried "put @1 "    ";" and "put;" but it didn't work.  Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
KevinC.</description>
      <pubDate>Tue, 13 May 2008 17:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17553#M3340</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2008-05-13T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Write a Blank Line using Put</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17554#M3341</link>
      <description>Hi:&lt;BR /&gt;
  It sort of depends on your whole program and what you're trying to do. Are you writing, with a DATA _NULL_ program to the LISTING destination or are you trying to insert some blank lines into ODS output???&lt;BR /&gt;
 &lt;BR /&gt;
  What is your destination of choice?&lt;BR /&gt;
  What is your SAS process (procedure or data _null_)?&lt;BR /&gt;
  Can you post a slightly longer code snippet???&lt;BR /&gt;
&lt;BR /&gt;
And, if you DO post code, you can maintain the code indentations, by putting [ pre] and [ /pre ] around your code...only that's &lt;BR /&gt;
square bracket pre square bracket and square bracket /pre square bracket &lt;BR /&gt;
without any spaces before or after the square bracket.&lt;BR /&gt;
&lt;BR /&gt;
If you are using PROC REPORT or PROC TABULATE or PROC PRINT, then the PUT statement is not appropriate to use with those procedures. If you are using DATA _NULL_, then PUT works to insert lines using either of these techniques:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
ods html file='c:\temp\class.html' style=sasweb;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  file print ods=(variables=(name age height));&lt;BR /&gt;
  put _ods_;&lt;BR /&gt;
  if name = 'Mary' then&lt;BR /&gt;
    put ' ';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
                &lt;BR /&gt;
ods listing;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  file print;&lt;BR /&gt;
  if _n_ = 1 then do;&lt;BR /&gt;
    put @15 'Jabberwocky';&lt;BR /&gt;
  end;&lt;BR /&gt;
  put 'Twas brillig and the slithy toves';&lt;BR /&gt;
  put 'Did gyre and gimble in the wabe';&lt;BR /&gt;
  put ' ';&lt;BR /&gt;
  put 'All mimsy were the borogroves';&lt;BR /&gt;
  put 'And the mome raths outgrabe.';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 13 May 2008 17:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17554#M3341</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-13T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Write a Blank Line using Put</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17555#M3342</link>
      <description>i'm nt experienced..and havnt used yet..i'm taking base sas certification course...as far i know..&lt;BR /&gt;
&lt;BR /&gt;
a null PUT statement can be used to output a blank line.&lt;BR /&gt;
&lt;BR /&gt;
put;</description>
      <pubDate>Tue, 13 May 2008 18:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17555#M3342</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-13T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write a Blank Line using Put</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17556#M3343</link>
      <description>Hi:&lt;BR /&gt;
  Yes, you are correct. &lt;BR /&gt;
&lt;BR /&gt;
  And now, you ask, why didn't I use a null PUT statement?? Because when I worked with SAS/IntrNet, a null put statement did NOT send a blank line to the HTTP stream -- it was ignored. So at that time, I got into the habit of using &lt;BR /&gt;
[pre]&lt;BR /&gt;
Put ' ' ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Which is a trivial amount of extra coding, but it ensures that I can have a program that works in the LISTING destination AND will also work if I need to submit it using SAS/IntrNet.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 13 May 2008 22:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17556#M3343</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-13T22:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Write a Blank Line using Put</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17557#M3344</link>
      <description>hi cynthia,&lt;BR /&gt;
as i said i hav no experience and havnt used it....i'm student ..whos taking base sas certification course....but..thank you for giving the useful information....it would be really helpful for me in the future.</description>
      <pubDate>Wed, 14 May 2008 04:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-Blank-Line-using-Put/m-p/17557#M3344</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-14T04:29:20Z</dc:date>
    </item>
  </channel>
</rss>

