Top Questions - RunSubmit.commost recent 30 from http://www.runsubmit.com2010-03-11T13:20:49Zhttp://www.runsubmit.com/feedshttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://www.runsubmit.com/questions/218/assessing-the-relative-strength-of-driver-variables-in-a-multivariate-logistic-reAssessing the relative strength of driver variables in a multivariate logistic regressionToloc2010-02-04T10:07:07Z2010-03-08T21:43:08Z
<p>Hello,</p>
<p>Which method do you use to assess the relative strength of each driver in a multivariate logistic regression ? This is very useful to show this on a pie chart to a non modeller audience.</p>
<p>Kind regards,</p>
<p>Toloc</p>
http://www.runsubmit.com/questions/134/how-do-i-edit-questions-on-runsubmitHow do I edit questions on run;submit?dataguy2009-11-13T19:43:18Z2010-03-06T00:25:30Z
<p>I have entered an answer to a question, which was edited by some helpful other user. I would like to do an additional edit, since a problem remains. How do I do that?</p>
<p>I also tried to send an email to info@runsubmit.com, but it bounced.</p>
http://www.runsubmit.com/questions/194/does-anyone-use-sas-servers-or-sas-bi-and-not-hate-itDoes ANYONE use SAS Servers or SAS BI and not hate it?jay.l.stevens2010-01-09T01:53:50Z2010-02-23T22:58:21Z
<p>Are there any active, large installations of the SAS Business Intelligence framework? Is anyone actively using all of the capabilities of the Metadata Server? Does anyone actively use SAS Information Maps? Does anyone use anything more than Base/Stat/Graph/IML/Access, etc.</p>
<p>Is SAS' huge attempt at "Enterprise Class" shared data and analytics just a 10 year waste of time? Or are there real success stories?</p>
<p>I've only ever heard of companies and customers "beginning" a SAS BI deployment and companies/customers "tearing out" a SAS BI Deployment.</p>
<p>Some encouraging success stories would be nice. Anyone?</p>
http://www.runsubmit.com/questions/4/how-do-i-change-the-picture-that-appears-beside-my-nameHow do I change the picture that appears beside my name?Moderator2009-10-18T19:15:36Z2010-02-22T00:26:30Z
<p>I want to change the picture that appears beside my name. How do I do that?</p>
http://www.runsubmit.com/questions/174/how-do-you-determine-the-size-of-sas-dataset-on-unixHow do you determine the size of sas dataset on UNIX?NextLevel-IS2009-12-18T15:41:31Z2010-02-15T02:53:39Z
<p>Does anyone know of any SAS functions / techniques for obtaining the SIZE of files / datasets in UNIX directories? (eg in MB or GB).</p>
http://www.runsubmit.com/questions/215/how-do-i-programmatically-create-new-catalogsHow do I programmatically create New Catalogs?WilliamDobson2010-01-15T14:22:46Z2010-02-15T02:52:20Z
<p>I suspect I missing something really obvious here, but is there a way to programatically create a new catalog?</p>
<p>I've had a look at <code>PROC CATALOG</code> but can't see anything which would create a new one.</p>
<p>(I did try to tag this as Catalogs/PROC Catalog, but apparently these are new tags and I can't create them)</p>
http://www.runsubmit.com/questions/113/finding-out-the-name-and-path-of-the-program-being-runFinding out the name and path of the program being runNextLevel-IS2009-11-06T11:10:55Z2010-01-13T10:09:21Z
<p>How can I determine the name and path of the program I am currently running? (In Windows, sas 9.1.3 - but techniques for other versions / environments would also be good to know..)</p>
http://www.runsubmit.com/questions/169/sas-coding-standardsSAS Coding Standardsjay.l.stevens2009-12-16T16:36:13Z2010-01-13T08:30:26Z
<p>What are some useful and necessary coding standards that most, if not all, SAS programmers should adhere to?</p>
<p>One suggestion/coding standard or principle per Answer. Vote up the answers you agree with.</p>
http://www.runsubmit.com/questions/196/disabling-sas-modulesDisabling SAS modules?Robert Penridge2010-01-09T23:54:00Z2010-01-12T15:41:33Z
<p>I have SAS/ACCESS licensed (among other modules) but want to disable it in order to simulate someone else's environment? It would also be helpful for answering some of the questions on this site. Is anyone aware of a way to do this?</p>
http://www.runsubmit.com/questions/199/maximum-size-of-a-sas-scriptMaximum size of a SAS scriptNextLevel-IS2010-01-12T09:13:50Z2010-01-12T13:54:26Z
<p>Is there a maximum size of a SAS <strong>SCRIPT</strong>? If so, how does this differ (if at all) between SAS 8 and 9?</p>
http://www.runsubmit.com/questions/160/identify-first-and-last-value-by-date-collected-per-recordIdentify first and last value by date collected per recordKwonC2009-12-04T02:53:20Z2010-01-10T22:04:40Z
<p>Here is how my data are set up:</p>
<p>where date# is the date the lab result# was collected.
I have tried to check if the dates are in asending order but cannot be certain (the real data can have up to 10 dates with 10 corresponding lab results). Where . are missing data. Where DATE# are dates mm/dd/yyyy, RESULT# are numeric, and ID is a string.</p>
<pre><code>ID DATE1 RESULT1 DATE2 RESULT2 DATE3 RESULT3 DATE4 RESULT4
1 1/1/2000 200 3/1/2000 250 8/1/2000 100 9/1/2000 400
2 . . . . . . . .
3 2/1/2000 225 9/1/2000 100 . . . .
4 12/1/2000 300 . . . . . .
</code></pre>
<p>QUESTION 1: How do I identify/tag the earliest and oldest lab result per ID? </p>
<p>These here is the output I need:</p>
<pre><code>ID FIRST LAST
1 200 400
2 . .
3 225 100
4 300 300
</code></pre>
<p>QUESTION2: any way to make the LAST output for ID 4 set to missing since there is only one result for this record?</p>
http://www.runsubmit.com/questions/33/is-a-hash-object-faster-than-an-arrayIs a Hash object faster than an Array?Moderator2009-10-21T01:51:23Z2010-01-09T23:36:36Z
<p>Could anyone explain why an array will always be faster than a hash object
described in SAS Prog3 course note?</p>
http://www.runsubmit.com/questions/165/filenotfoundexception-when-using-enterprise-guide-automation-server-with-cFileNotFoundException when using Enterprise Guide automation server with C#unknown (yahoo)2009-12-07T22:49:10Z2010-01-09T01:55:37Z
<p>Any idea why I get this exception when using C# to start up the Enterprise Guide automation server?</p>
<p>Code:</p>
<pre><code>SAS.EG.Scripting.Application enterpriseGuide = new SAS.EG.Scripting.Application();
SAS.EG.Scripting.ISASEGProject project = enterpriseGuide.New();
</code></pre>
<p>throws FileNotFoundException</p>
<p>with Message "C:\SAIC Development\Main\SAS\working\alerts\add-in\AlertManager\bin\Debug\SEGuide.exe"</p>
<p>and Stack Trace</p>
<pre><code>at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at SAS.Shared.SharedEnvironment.get_ApplicationVersion()
at SAS.EG.ProjectElements.Element.SetModified()
at SAS.EG.ProjectElements.Element.SetLabel(String strLabel)
at SAS.EG.ProjectElements.ProjectCollection..ctor(IMetadataService metadataService)
at SAS.EG.ProjectElements.ProjectCollection..ctor()
at SAS.EG.Scripting.Project..ctor()
at SAS.EG.Scripting.Application.New()
at AlertManager.AlertDesignerForm.CreateNew() in C:\SAIC Development\Main\SAS\working\alerts\add-in\AlertManager\AlertDesignerForm.cs:line 50
at AlertManager.AlertDesignerForm.newToolStripMenuItem_Click(Object sender, EventArgs e) in C:\SAIC Development\Main\SAS\working\alerts\add-in\AlertManager\AlertDesignerForm.cs:line 128
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at AlertManager.Program.Main() in C:\SAIC Development\Main\SAS\working\alerts\add-in\AlertManager\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
</code></pre>
<p>Any help would be appreciated.</p>
http://www.runsubmit.com/questions/81/finding-the-of-days-between-two-datesFinding the # of days between two dates?SAS-L2009-10-30T11:11:36Z2010-01-08T05:30:31Z
<p>I have data like: </p>
<pre><code> patid startdate endday
01S1003 9/30/2008 3/16/2009
</code></pre>
<p>How do I find the number of days bewteen <code>startdate</code> and <code>endday</code>?</p>
http://www.runsubmit.com/questions/104/sas-support-for-enterprise-guide-add-in-using-vs2008SAS Support for Enterprise Guide Add-In using VS2008?jay.l.stevens2009-11-04T16:36:07Z2010-01-07T18:08:57Z
<p>Does SAS have any examples or templates/wizards that are usable in Visual Studio 2008? I'm trying to explore building custom tasks and I have EGuide installed along with MS-Addin as well. I can open the example projects in VS2008 but I'm missing references. Any ideas? Also, the EG Wizard and Project types aren't installed properly (I manually copied based on my review of the Deploy.vbs file.</p>
<p>Any help or hints would be appreciated...</p>
http://www.runsubmit.com/questions/189/how-to-suppress-the-display-of-output-dataset-nodes-in-egHow to suppress the display of output dataset nodes in EG?jay.l.stevens2010-01-07T02:43:23Z2010-01-07T12:47:33Z
<p>In Enterprise Guide, any output datasets (created in <code>WORK</code> or other <code>LIBNAME</code>) are, by default, displayed as output nodes emitting from the program or code node that generates them. </p>
<p>I have a relatively complex process that generates (by necessity) a TON of intermediate work datasets. I'd rather not kill them all as a part of the process ( I guess that's one solution).</p>
<p>Is there a way (through options or registry keys or devil magic) to suppress the display of these gajillion output datasets?</p>
http://www.runsubmit.com/questions/184/copying-files-from-rwork-to-work-using-egCopying files from RWORK to WORK using EGNextLevel-IS2010-01-04T17:48:09Z2010-01-05T10:07:33Z
<p>Can anyone advise how to perform a 'proc download' equivalent using EG?</p>
<p>ie copy files from the WORK library held on the remote server (SASUnix) to the local WORK library?</p>
<p>There must be a workaround!! </p>
http://www.runsubmit.com/questions/185/theta-symbol-in-a-sas-labelTheta Symbol in a SAS Label?SAS-L2010-01-04T19:58:58Z2010-01-05T02:55:45Z
<p>How do I make the label for a variable display a Greek character. </p>
<p>So I need:</p>
<pre><code>label Theta = <somehex_expression?>;
</code></pre>
<p>I'm trying to label the variable named Theta with the upper case Greek theta symbol. thoughts?</p>
http://www.runsubmit.com/questions/179/error-with-ods-and-proc-templateError with ODS and Proc TemplateSAS-L2009-12-29T22:56:31Z2009-12-29T22:59:39Z
<p>I am trying to create a custom template within a program run via Enterprise Guide. However, no matter what I do, I keep getting an error:</p>
<pre><code>ERROR: Template 'MyTemplate' was unable to write to template store!
</code></pre>
<p>Is this a permissions issue of some kind?</p>
http://www.runsubmit.com/questions/175/replacing-missing-values-by-the-medians-within-each-sub-groupReplacing missing values by the medians within each sub groupOlivier2009-12-19T15:57:58Z2009-12-22T09:51:03Z
<p>Hello everyone,</p>
<p>I am trying to replace missing values with the corresponding median, bearing in mind that this Median must varies across a class variable (CountryCode)</p>
<p>so I have something like</p>
<p>CountryCode AGE
US 12
US 10
US .
FR 11
FR .
NL 10</p>
<p>etc...</p>
<p>in the above example I am trying to replace the missing in Age by the medians AGE within each Country (US, FR, NL)</p>
<p>Have tried a coupld of sulutions that will relace with the median across the whole sample but nothing that actually take into account the class variable CountryCode)</p>
<p>Thanking you in advance,</p>
http://www.runsubmit.com/questions/1/proper-sas-format-for-a-difference-in-time-xxxxProper SAS format for a difference in time XXXXModerator2009-10-18T15:52:39Z2009-12-21T11:04:34Z
<p>Can anyone suggest the best SAS format for a difference in time? </p>
<p>From what I can tell the TIMEw. & HHMMw. & MMSSw. are not appropriate b/c
they report time from midnight. I just want to take the number of seconds
between to time points and express it in hours, minutes, seconds as
appropriate. </p>
http://www.runsubmit.com/questions/157/code-or-process-to-assign-value-labels-to-specific-numerical-values-in-a-datasetCode or process to assign value labels to specific numerical values in a datasetDagan2009-12-02T22:12:52Z2009-12-16T16:45:40Z
<p>I am still struggling a bit with how SAS handles value labels for specific numbers in a variable.</p>
<p>How do you code value labels within a variable/column for a SAS dataset?</p>
<p>An example is LevelofCare variable: 5=education 6=medication assist 10=outpatient 20=intensive outpatient 30=residential</p>
<p>In Stata I would do such:
label define LOCSE 5 "Education" 6 "Methadone" 10 "Outpatient" 20 "Intensive Outpatient" 30 "Residential" 40 "Detox"
label values LevelofCare LOCSE</p>
<p>The result is I would then have value labels assigned to that Stata dataset permanently.</p>
<p>Is there such a process or command in SAS?</p>
<p>I have tried and know you can do a proc format statement like:</p>
<p>proc format;</p>
<pre><code>value $CareLevellb
'0'='Assess only'
'00'='Assess only'
'05'='Education'
'10'='Outpatient'
'20'='Intensive outpatient'
'25'='Day tx'
'30'='Residential';
attrib LevelCare label="Level of care received";
format LevelCare $CareLevellb.;
RUN;
</code></pre>
<p>But I believe this is only temporary. What am I doing incorrectly? I did try variations running the above say under a data command such as </p>
<p>DATA Rfpdata.Test2008;
SET Rfpdata.Tb2008_nodup
proc format;
..............</p>
<p>Any suggestions? Will/how does SAS incorporate variable value labels in a permanent dataset once you run a program.</p>
<p>Thank-you ahead of time.</p>
http://www.runsubmit.com/questions/166/hash-table-scalar-errorhash table 'scalar' errorNextLevel-IS2009-12-15T16:30:02Z2009-12-16T16:26:31Z
<p>Does anyone have any idea why I am getting the following error?</p>
<pre><code>ERROR: Scalar cannot be converted to object of type hash.
</code></pre>
<p>the hash table has three columns and one row. I am loading it in a data step that has no set statement - see below:</p>
<pre><code>data dataset1;
imp='TOTAL';
var1=3;
var2=4;
run;
data test;
call missing(var1,var2);
declare hash imp(dataset:"dataset1 ");
imp.defineKey('IMP');
imp.defineData("VAR1","VAR2");
imp.defineDone();
imp='TOTAL';
if imp.find() = 0 then PVIF= sum(var1, 2);
run;
</code></pre>
<p>can anyone advise?</p>
http://www.runsubmit.com/questions/162/way-to-use-text-editor-on-runsubmitway to use text editor on runsubmitToloc2009-12-04T08:36:35Z2009-12-16T16:19:59Z
<p>Could you please tell me the writing conventions to use on runsubmit ? To answer or ask questions it is not always possible to write special characters (like the underscore), I've got also some time parts of SAS code which doesn't appear.</p>
<p>Kind Regards<br />
Toloc</p>
http://www.runsubmit.com/questions/164/oledb-excel-connection-in-read-only-modeOLEDB Excel Connection in Read-Only Mode?Joseph2009-12-07T18:12:39Z2009-12-07T18:12:39Z
<p>I'm having trouble getting OLEDB for Excel to work in read-only mode.
The document is usually accessed by another user, and I'd like to import its contents to SAS without needing to tell other users to close down Excel first.</p>
<p>This is what I have right now, which is NOT opening the document in readonly mode.</p>
<pre><code>libname oledbxls oledb ACCESS=READONLY provider="Microsoft.Jet.OLEDB.4.0"
properties=("data source"="&xlsfile." "Mode"="Read")
provider_string="Excel 8.0;ReadOnly=True;HDR=no;IMEX=1;"
;
</code></pre>
<p>This is the error I get:</p>
<pre><code>ERROR: Error trying to establish connection:
Unable to Initialize: The Microsoft
Jet database engine cannot open the file ''.
It is already opened exclusively by another user,
or you need permission to view its data.
ERROR: Error in the LIBNAME statement.
</code></pre>
<p>Everything works fine unless someone has the document opened in Excel. Any advice is greatly appreciated.</p>
http://www.runsubmit.com/questions/155/placeholder-rows-values-from-xml-libnamePlaceholder Rows/Values from XML libnameWilliamDobson2009-11-26T15:52:45Z2009-11-27T15:51:46Z
<p>I have some XML data which I'm trying to read into SAS 9.1.3 through the XML libname engine.
Said XML data looks a lot like this (some may recognise that's it's output from PROC METADATA):</p>
<pre><code><?xml version="1.0" encoding="windows-1252"?>
<GetMetadataObjects>
<Reposid>A0000001.AREPOSID</Reposid>
<Type>Person</Type>
<Objects>
<Person Id="AREPOSID.AA000001" Name="User The 1st">
<Logins/>
</Person>
<Person Id="AREPOSID.AA000002" Name="User The 2nd">
<Logins>
<Login Id="AREPOSID.AV000001" UserID="AUserID">
<Domain>
<AuthenticationDomain Id="AREPOSID.AD000001" Name="DefaultAuth"/>
</Domain>
</Login>
<Login Id="AREPOSID.AV000002" UserID="AlsoUserID">
<Domain>
<AuthenticationDomain Id="AREPOSID.AD000002" Name="DummyAuth"/>
</Domain>
</Login>
</Logins>
</Person>
<Person Id="AREPOSID.AA000003" Name="Person The 3rd">
<Logins/>
</Person>
</Objects>
<NS>SAS</NS>
<Flags>260</Flags>
<Options>
<Templates>
<Person Id="" Name="">
<Logins Id=""/>
</Person>
<Logins>
<Login/>
</Logins>
<Login Id="" Userid="">
<Domain/>
</Login>
<Domain>
<AuthenticationDomain/>
</Domain>
<AuthenticationDomain Name=""/>
</Templates>
</Options>
</GetMetadataObjects>
</code></pre>
<p>The above XML is associated with a file reference called xml_out, and I'm using the following code to read it into a SAS dataset:</p>
<pre><code>filename xml_map temp;
data _NULL_;
file xml_map;
put
'<?xml version="1.0" encoding="windows-1252"?>'
/ '<SXLEMAP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="TreeMap" version="1.2" xsi:noNamespaceSchemaLocation="http://www.sas.com/xml/schema/sxle12.xsd">'
/ ' <TABLE name="user_logins">'
/ ' <TABLE-PATH syntax="XPath">/GetMetadataObjects/Objects/Person/Logins/Login</TABLE-PATH>'
/ ' <COLUMN name="UserMetaId">'
/ ' <PATH syntax="XPath">/GetMetadataObjects/Objects/Person/@Id</PATH>'
/ ' <TYPE>character</TYPE>'
/ ' <DATATYPE>string</DATATYPE>'
/ ' <LENGTH>200</LENGTH>'
/ ' </COLUMN>'
/ ' <COLUMN name="UserMetaName">'
/ ' <PATH syntax="XPath">/GetMetadataObjects/Objects/Person/@Name</PATH>'
/ ' <TYPE>character</TYPE>'
/ ' <DATATYPE>string</DATATYPE>'
/ ' <LENGTH>200</LENGTH>'
/ ' </COLUMN>'
/ ' <COLUMN name="LoginsGroup">'
/ ' <PATH syntax="XPath">/GetMetadataObjects/Objects/Person/Logins/@Id</PATH>'
/ ' <TYPE>character</TYPE>'
/ ' <DATATYPE>string</DATATYPE>'
/ ' <LENGTH>200</LENGTH>'
/ ' </COLUMN>'
/ ' <COLUMN name="LoginDomain">'
/ ' <PATH syntax="XPath">/GetMetadataObjects/Objects/Person/Logins/Login/Domain/AuthenticationDomain/@Name</PATH>'
/ ' <TYPE>character</TYPE>'
/ ' <DATATYPE>string</DATATYPE>'
/ ' <LENGTH>200</LENGTH>'
/ ' </COLUMN>'
/ ' <COLUMN name="LoginId">'
/ ' <PATH syntax="XPath">/GetMetadataObjects/Objects/Person/Logins/Login/@Id</PATH>'
/ ' <TYPE>character</TYPE>'
/ ' <DATATYPE>string</DATATYPE>'
/ ' <LENGTH>200</LENGTH>'
/ ' </COLUMN>'
/ ' </TABLE>'
/ '</SXLEMAP>'
;
run;
libname xml_out xml xmlfileref=xml_out xmlmap=xml_map;
data logins_details_test;
set xml_out.user_logins;
run;
</code></pre>
<p>The output data from this procedure looks like this:</p>
<pre>
UserMetaId UserMetaName LoginDomain LoginId
---------------------------------------------------------------
AREPOSID.AA000002 User The 2nd DefaultAuth AREPOSID.AV000001
DummyAuth AREPOSID.AV000002
</pre>
<p>Can anybody suggest what I'd need to change in either the xml map, or in the libname statement so that I get either 1 row per login found, or a single row with no login details if no login details are visible?
i.e.</p>
<pre>
UserMetaId MetaName LoginDomain LoginId
---------------------------------------------------------------
AREPOSID.AA000001 User The 1st
AREPOSID.AA000002 User The 2nd DefaultAuth AREPOSID.AV000001
AREPOSID.AA000002 User The 2nd DummyAuth AREPOSID.AV000002
AREPOSID.AA000003 User The 3rd
</pre>
http://www.runsubmit.com/questions/153/proc-transpose-all-variablesProc Transpose All Variables?Joseph2009-11-25T21:44:04Z2009-11-27T15:25:23Z
<p>I'm writing a macro that takes in a dataset with an unknown number of columns (both character and numeric), but it is known that 1 column is called obsId.</p>
<p>I'd like to proc transpose the contents of the entire table by ObsId, without knowing the names of the other columns. Is this doable without doing something crazy like looking it up in dictionary.columns?</p>
<p>Sample Dataset</p>
<pre><code>ObsId Name Age Height
1 John 15 170
2 Joe 34 160
</code></pre>
<p>Desired Output</p>
<pre><code>ObsId _name_ col1
1 Name John
1 Age 15
1 Height 170
2 Name Joe
2 Age 34
2 Height 160
</code></pre>
<p>Equivalent Code</p>
<pre><code>proc transpose data=dataset;
by ObsId;
var Name Age Height;
run;
</code></pre>
<p>Again, I'd like to be able to do this with any generic dataset which has a column named ObsId and an unspecified number of other columns.</p>
<p>Any input would be appreciated.</p>
http://www.runsubmit.com/questions/144/tree-visualization-when-using-proc-arboretum-in-sas-statTree visualization when using proc arboretum in SAS /STATJCP2009-11-24T08:44:59Z2009-11-25T11:22:35Z
<p>Hi,</p>
<p>Does anybody know how to display (in HTML format) a tree resulting from a proc arboretum in SAS STAT ? </p>
<p>IS it possible? if yes how? </p>
<p>Thanks in advance for your help
JCP</p>
http://www.runsubmit.com/questions/142/glmselect-tweak-for-logistic-regressionsGLMSELECT - Tweak for logistic regressionsOlivier2009-11-23T15:59:47Z2009-11-25T10:02:08Z
<p>Hey Folks,</p>
<p>At the moment i am using GLMselect as a first stage investogation on potential valid and stable regressors (Out of Sample validation and ASE being the key features I want to leverage here). My dependent is a 1/0 binomial but I was hoping I could get a syntax or use another PROC (perhaps Transreg?) to transform it into the logit input - my problem is that I am using a cross section and i am not too sure about the best syntax or Proc to use - your thoughs and suggestions are much appreciated !</p>
http://www.runsubmit.com/questions/26/unduplicating-records-within-a-sas-datasetUnduplicating records within a SAS datasetDagan2009-10-20T17:53:51Z2009-11-25T07:49:18Z
<p>I am new to SAS but have background programming in C++, Stata, SPSS, even JMP. </p>
<p>Our datasets contain multiple duplicates and I need to unduplicate the SAS records/rows within the files using multiple variables, (var1, var2, var3, var4, var5). A unique record is basically with var 1 to var 5 are a multiple key combination to indicate a unique episode of care.</p>
<p>In Stata I would do something like:
duplicates drop (var1 var2 var3 var4 var5), force</p>
<p>This would drop multiple records/rows that had the same combination value of var1 to var5</p>
<p>Thanks for any help.</p>