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???
What is your destination of choice?
What is your SAS process (procedure or data _null_)?
Can you post a slightly longer code snippet???
And, if you DO post code, you can maintain the code indentations, by putting [ pre] and [ /pre ] around your code...only that's
square bracket pre square bracket and square bracket /pre square bracket
without any spaces before or after the square bracket.
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:
ods html file='c:\temp\class.html' style=sasweb;
file print ods=(variables=(name age height));
if name = 'Mary' then
put ' ';
ods html close;
if _n_ = 1 then do;
put @15 'Jabberwocky';
put 'Twas brillig and the slithy toves';
put 'Did gyre and gimble in the wabe';
put ' ';
put 'All mimsy were the borogroves';
put 'And the mome raths outgrabe.';
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
Put ' ' ;
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.
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.