tag:blogger.com,1999:blog-10629375.post7302123107902169625..comments2024-03-28T02:21:23.122-07:00Comments on Data Steps: Data Set Sorted By InformationStephenhttp://www.blogger.com/profile/01356803756509162192noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10629375.post-46359261149513493372008-07-03T11:30:00.000-07:002008-07-03T11:30:00.000-07:00I got a nice reply from Jason Secosky at the SAS I...I got a nice reply from Jason Secosky at the SAS Institute that the code I posted is not the best way to get the sorted by information from a data set. His suggestion is to use the attrC() function:<BR/>data _null_;<BR/> dsid = open('work.myData');<BR/> sortedBy = attrc(dsid, 'sortedby');<BR/> put sortedBy=;<BR/>run;<BR/><BR/>Much, much better than the mess I wrote! I don't know why I didn'tStephenhttps://www.blogger.com/profile/01356803756509162192noreply@blogger.comtag:blogger.com,1999:blog-10629375.post-53582280526860147512008-06-19T12:47:00.000-07:002008-06-19T12:47:00.000-07:00Stephen, nice bloggin'! Just one observation: if I...Stephen, nice bloggin'! Just one observation: if I try to copy-and-paste your code in my (or SAS) code editor, it appears as a single line. Luckily, my code editor has an indenter, so no big deal, but if you're using the SAS Enhanced Editor, you're out of luck. :-) You can use my Notebook to export your SAS code to HTML code, but Blogger may scrub HTML tags when you publish your blog post, as Anonymousnoreply@blogger.com