sas

SAS Web Report Studio - how to count distinct values in crosstabs

Hello, in SAS Web Report Studio 3.1 I need to count distinct occurences for selected dimensions and display the results in a crosstable. According to the SAS Support Web site this aggregate function is not supported in cross tablulations, but maybe there is a work-around? Thank you and best Regards Nadine ...

Generating a report in Base SAS that is NOT in a table layout

I am working on a report in Base SAS 8.1(OpenVMS). I need it to have 1 page per observation...similar to below. I can't find anything that shows how to do this with PROC PRINT or PROC REPORT. Is there any way to do this other than with the PUT statement? Upgrading or adding modules isn't an option unfortunately. Any help is appreciated. ...

SAS Macro GLOBAL scope

is there a short way to make ALL macro variables created inside a macro global in scope? ie: %macro x; %global _all_; * ??? ; %let x=1; %let y=1; %let z=1; %mend; ...

Sort Order of Datasets

Is there any inherent method in SAS to find the sort order of a dataset? ...

Is the usage of SAS in business increasing or decreasing?

When you look at the Business Intelligence arena, there are many big players, including SAS. In my time in this space I am noticing more big players moving to a more user friendly tool that doesn't require coding skill sets. Also, I am aware that SAS is trying to protect their market share by introducing tools that are more point and c...

SQl PAssthrough in SAS

Are there any advantages in using SQL PAssthrough facility along with SAS. ...

In SAS, what is the difference between Proc Means And Proc Summary?

What exactly is the difference between Proc Means and Proc Summary? Many sites state that both these are same, but unless each has something unique will SAS create it? ...

What is the difference between a ytd report and 12 mtd ?

Whats the difference between 12 mtd , 12 mtd rolling and ytd calculation ...

When creating a correlational ellipse, is it possible to identify the cases that fall in or out of the ellipse?

Support.sas.com provides this syntax for creating a prediction ellipse. The output dataset includes only the correlation results for the dataset. Is there any way to get information for the individual cases, such as labeling them in the graph or having the output include values for the individual cases? I've tried adding the ID option...

Function Point Analysis in SAS

Would some be able to help me with some links on how FPA is done for SAS related projects.If someone of yuo have already done I guess it would be even more usefull if yuo could share some tips on how it could be done ...

Creating Icons on Application Toolbar via SAS autoexec (Base SAS)

I would like to know if it is possible (and if so how) to add buttons to the SAS Application Toolbar via SAS script. For instance, I have a button which submits "signoff" via the command line, and would like to distribute this to the rest of the team via our shared autoexec. ...

submit SAS code or macro from Toolbar

Is it possible to allocate a SAS script or macro to a Toolbar button in Base SAS? ie can you 'dm' a macro or sas script? ...

Using Toolbar to submit SAS code from Editor

When submitting SAS code via the SAS Toolbar (eg cmjohns response) the compiler knows that the code is being "DM'd" and will not run certain code (eg %window). Is there a way to trick SAS into believing that code submitted from the Toolbar is coming from the Editor, therefore allowing interfaces (using %window) to be triggered via poi...

How do you make SAS toolbar available to ALL windows?

I am using SAS 9.1 and wish to make my toolbar available regardless of which window is in 'focus' (eg log, editor, output). My code looks like this: libname temp678 "\\MyDrive\Team Autoexec"; dm "toolload bar temp678.profile.MycustomToolbar"; libname temp678 clear; However when I run it, it only gets applied to the Log window! I'v...

Using Base SAS to validate Windows Password

We have a signon script that requires a Windows password in order to access and validate against the SAS metadata server. The problem is that if the windows password is changed, and the script is run a few without being updated, then the user gets locked out and has to call IT support for a password reset. What is the simplest way of u...

SAS function to strip apostrophes from a character string (compress?)

I have a string which looks like this: "ABAR_VAL", "ACQ_EXPTAX_Y", "ACQ_EXP_TAX", "ADJ_MATHRES2" and I'd like it to look like this: ABAR_VAL ACQ_EXPTAX_Y ACQ_EXP_TAX ADJ_MATHRES2 ie no apostrophes or commas and single space seperated. What is the cleanest / shortest way to do so in SAS 9.1.3 ? preferably something along the lin...

metadata_newobj function in SAS 9.2 has a bug?

Hi, I have a SAS application that I am testing with the newly released SAS 9.2. I have a call to the metadat_newobj function to create a new Library object in the SAS metadata repository: rc = metadata_newobj( "SASLibrary", URI, Name ); In 9.1.3, when the function executed successfully (rc = 0), the URI variable was populated with th...

SAS error when using PROC IMPORT in OPEN VMS

I am running SAS version 8.1 on the OpenVMS 8.3 platform. I have tried 2 different ways to import a csv data file and cant seem to get either of them to work properly. It would be great if anyone has any ideas as to what I may be doing wrong. This seems like a rather simple thing to do. CSV file SSID,field1,......(etc) AA9999999,0438...

What is the best non-SAS IDE for the SAS Language?

I am working on SAS code that will run under UNIX. Ideally the IDE will have: intelligent code formatting (autocomplete is not necessary). ability to transfer code to server via SFTP/SSH/SCP. Ability to execute code on the server via ssh and -e Ability to pull the logs back down and have those formatted as well. Thoughts? I'm lo...

Error handling on sockets in SAS under OpenVMS

I'm using SAS 9.2 on OpenVMS to connect to an external data source over a socket specifed with a filename statement: filename extsrc SOCKET "extserver:port" recfm=v; data foo; infile extsrc; input; .... some statements to read stuff ...; run; This works (as it should) 99% of the time. However, once in a while the program that is supp...