Monday, April 27. 2009Creating a SAS format from a data setTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Cool. I built a similar app a few years back for DSUG. It's nuance was that it could take any datasource (OleDb, Excel, etc.) and automatically generate the formats for you. Used drag-and-drop (Infragistics datagrid).
My point was to illustrate that SAS code could be generated outside of macros. May be a feature to add in at a later point. Alan I frequently have layouts of text files or lists of variable values I need formatted in an Excel spreadsheet. I find that simply using the Excel CONCATENATE function that allows me to to write out the SAS code in Excel and then drag that formula down throughout the entire workbook is a very fast way to generate the SAS code I need. I just click on the Excel column in which I generated the SAS code and paste it into SAS.
This works for much more than format statements. Inelegant perhaps -- but accurate and very fast. You are my EG super-hero. If I had a nickle for every time I had an EG student ask me for this, I'd be a rich man!
Now I just have to wait until my students upgrade to 4.2 Andy Credit where credit is due: the task was developed by my colleague in New Zealand:
http://blogs.sas.com/sascom/index.php?/archives/295-Five-questions-with-David-McNamara.html Chris |
ABOUT CHRIS Chris Hemedinger is a senior software manager in SAS R&D. He's part of the team that builds SAS Enterprise Guide and SAS Add-In for Microsoft Office. He's also co-author of the popular SAS for Dummies book and moderator of the SAS Enterprise Guide discussion forum.
QuicksearchOther SAS BlogsBI and Chicken Pot PieConversations and Connections Data Flux Community of Experts Closing the Intelligence Gap In Other Words In the Final Analysis JMP Blog Key Happenings at support.sas.com The New Lending System The Text Frontier SAS Global Forum Blog sascom Voices Blog A Shot in the Arm All SAS Blogs Recent postsUsing the X and SYSTASK commands from SAS Enterprise Guide
19Nov2009 Learn about ODS Statistical Graphics 06Nov2009 Hooo-ray for Hollywood 03Nov2009 Where to find ODS Statistical Graphics in SAS Enterprise Guide 23Oct2009 Welcome sasCommunity visitors! 21Oct2009 Do me a favor: stop doing me favors 20Oct2009 You can use it for evil, too 16Oct2009 The CIO perspective from MWSUG 13Oct2009 SAS 9.2 and SAS Enterprise Guide 4.2 on Windows 7 01Oct2009 SAS 9.2 support for Windows Server 2008 30Sep2009 BOOKS & VIDEOSSAS for Dummies -- If you want to learn to be productive using the latest SAS tools and technologies in your daily work, but don't necessarily want to learn SAS programming, then this book was written for you! ![]() Efficient Data Access with SAS Enterprise Guide (YouTube) -- Shows the best way to access data in a DBMS from SAS Enterprise Guide, using M&Ms as a prop. ![]() Exciting combinations: SAS and Microsoft Office (YouTube) -- A metaphor for the exciting features you get when you add the SAS Add-In for Microsoft Office to your desktop.
The blog content appearing on this site does not necessarily represent the opinions of SAS. Your use of this blog is governed by the Terms of Use.
|