As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Talk:DATALINES statement

From sasCommunity
Revision as of 12:09, 18 August 2016 by Paulkaefer (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There's a great, simple example on the SAS Support site:

SAS 9.2 Language Reference: Dictionary, Fourth Edition - Statements: DATALINES Statement - Example 2

- paulkaefer (talk) 16:08, 20 May 2016 (CDT)

Thank you for the suggestion of including an example; it is a good idea. When I originally contributed the article I had limited experience with SAS, so couldn't think of an example at the time. However the example you identify cannot be used because of copyright reasons. The sasCommunity Terms of Use mean you need to have the publisher's permission to copy code examples or anything else from the SAS Support Site or any other website. However, there is nothing to prevent anyone from creating another example and then contributing that, as they would have written it themselves. Personally, I think that SAS Support's example 2 is a bit too complex and I think their example 1 is simpler, although I think that even that example is more complex than it needs to be. The purpose of an example should be to show how the DATALINES statement is used, rather than demonstrating input delimiting or the use of other statements in the example. That means something really simple would be enough - Cameron (talk) 20:20, 22 May 2016 (CDT)
How about an example like this? It has sample data, both char and numeric, but doesn't show any options like delimeters. - paulkaefer (talk) 11:31, 18 August 2016 (CDT)
data friends;
    input name $ age;
    datalines;
Alex 18
Beth 32
Casey 25
;