SAS EG - Open a table without creating table link in process flow - sas

This seems rather trivial, but in SAS Enterprise Guide, is there a way to simply open a SAS dataset from a SAS library without having a shortcut added automatically to the process flow?

For SAS EG 5.1, you need to do the following:
Right click on data set
Select Explore
Go to "Data Explorer"
Double click on data set that you want to explore
Once it is in the Data Explorer, you don't need to do steps 1-3 again for that dataset.

In EG 7 (I might be able to find and older version if you don't have 7):
Tools -> Options -> Data/Data General
Under "Default Action for Data in Server List and SAS Folders", check "Explore".
From the documentation included, that "opens data sets in the Date Explorer when you double-click then in the Server List and SAS Folders windows. The Data Explorer enables you to view a SAS Data Set without adding the data set to your project."

Related

SSRS (SSDT 15.1.6, with Visual Studio 2017) no longer supports query building using query strings?

I haven't worked in SSRS for a few years. But I recently changed jobs and my new responsibilities include a heavy dose of report building. In my experience with SSRS I've always been able to build a dataset by including a query string. (See first image.) But I'm using SSRS via a Sql Server Data Tools install in Visual Studio 2017 for the first time, and I have been unsuccessful in sussing out how to include a query string when building a new report. This newer version seems to only offer a graphical, drag-n-drop solution. (See second image.)
How do I create a dataset that relies on a query string, or barring that, is there a way to build a dataset that relies on joined tables, with filters?
Old query designer in SSRS
New query dataset builder
You can still write your own queries. Skip the wizard and start a blank report. Right click data sources and add your SQL server. Then right click Datasets and add a new one. Select "Use a dataset embedded in my report" and your SQL server as the data source.
Now you should see the query window and you can click Query Designer below it. In the top left of the query designer there is an "Edit as Text" button that will allow you to write it out.
Once you have your dataset made you can quickly get back to the query designer by right clicking the dataset and selecting "Query..."

How to view the imported dataset in sas enterprise miner

I have imported a dataset into SAS Enterprise miner using the file import node.Now how can I explore and view the imported data set within SAS Enterprise miner?
Right click on the Data Sources and click Explore.
At the place where you can see Data Sources, right mouse click on the data set you want to explore. At the drop down menu, select Explore. You will get a sample, though, not the full view

Oracle Apex 5: retain format of Interactive Report on download

In Oracle Apex 5, a user can manipulate an Interactive Report's data with a number of actions (Sort, Filter, Group By, Control Break...). However, when the report is downloaded as a CSV only the Filter action is retained from the manipulations. How can you get the download of an Interactive Report to display the report as is?
The closest solution I could find is a plugin found on github, see Interactive Report to Excel v2
At the time, it worked for the particular report we had an issue with (Control Break on one column, with some Sorting), but when I tried it on a Group By it didn't work.
We have had good results with APEX_IR_XLSX and have added our own customization pieces to it quite easily.

How do I chain stored processes together using only EG4.3?

I'm creating an HTML based data dictionary using stored processes in EG4.3 running on 9.2 BI Suite on Unix.
We have had our middle tier web servers effectively turned off, so this STP can only be used inside EG itself.
Using a plethora of puts, I have created the HTML pages that I require in four stored processes:
The main page, that takes as a prompt input, a wildcard for (for example) a column in question and returns in HTML a list of datasets where this column appears.
From this, the user can select a library, table or column to drill down into more details
A stored process that returns in HTML a list of datasets in a selected library;
A stored process that returns in HTML a list of columns in a selected table;
A stored process that returns in HTML a more detailed listing of a columns attributes.
The first STP works great and I can see a nicely formatted listing of information, with library, dataset and column links.
My problem is as follows: When I click on a link, I would like that to run the requisite STP, and return the HTML page to the same Results tab that my initial report is in.
I've checked endless sas articles and can't find an answer.
Here is the code I'm using to generate a link to the other STP's (where chars[i] is an a-z value from a dataset):
/* Get the root session ID*/
hrefroot = symget('_THISSESSION') || '&_PROGRAM=/Shared Data/Team/stored_process/';
/* Get the next stp path (neither ?&_PROGRAM= nor the below seem to work)*/
hrefnextstp = "?_PROGRAM=/Shared Data/Team/stored_process/";
// build up the HTML using puts //
stpval="stpddlibrary";
stplink=cats('', chars[i],'');
put stplink;
How, with the above in mind, can I chain together multiple stored processes using just EG?
There's no &_URL seen as though I'm not using the web, so that ruled that out.
I hope I've articulated that well..
The problem you are encountering is that the HTML page is trying to navigate to a web service to pull the next page. However, EG isn't able to function as a web server to respond the browsers request.
The stored process code is best used via the web mid-tier or the SAS MS Office plug-in. If those two tools are not available, you might consider moving the logic out of the SAS Stored Proc and into EG directly and use the response to drive a second flow in your eg project. If you are looking to drive a web page you can call sas via Java and the SAS IOM Bridge and talk to SAS the same way EG does but your UI in this case would be build in Java. Another suggestion, try using vbscript to drive EG via COM.
Here is a link to controlling EG via COM:
http://www.sascommunity.org/wiki/Not_Just_for_Scheduling:_Doing_More_with_SAS_Enterprise_Guide_Automation
The code you provided would work well to build the url as serviced by the SAS Mid-Tier stored proc web service. Stored in a SAS Stored proc you can build the url to the mid-tier pointing at other stored procs using the SAS provided web interface for stored procs to see how the parameters and url is constructed.
If your mid-tier web service was online, you might also be able to call the stored procedure in your code. Calling it via proc http, here is an example from sas docs:
proc http in=in out=out url="http://localhost.com/rsm/rstool"
method="post"
ct="application/x-www-form-urlencoded";
run;

Can you use a SAS dataset as a SSIS data source?

We have a some ETL processes that read CSV files that are output from SAS programs. I'm in the process of upgrading one of these ETLs and was wondering if I could use SSIS to read directly from the SAS dataset.
Has anybody done this successfully?
See here
"You can use SAS Local Data Provider (can be downloaded separately and comes as part of SAS for Windows installation). "
Recently I've moved data from SAS environment:
In connection manager I choose _Native OLE DB\SAS Local Data Provider 9.3_
Enter file name (`\..\dev` before the table name). Click OK
Drag _OLE DB Source_ into the Data Flow
Right click on _OLE DB Source_ and choose _Show advanced editor_
In the first tab (_Connection Manager_) choose _SAS Connection Manager_ from drop down list you created now
In the Component Properties tab in _OpenRowset_ write the name of the table, click OK
If you have `datetime` type transform it using Derived Transformation Editor
For loading SAS XPT or SAS7BDAT data files without having an instance of SAS to connect to via OBDC we used the following
A third party tool (STATTransfer) to read the XPT file
STATTransfer ODBC driver
Setup the connection in SSIS as an ODBC datasource and load into the database for processing.
There are SAS datasource SSIS extension available http://www.cozyroc.com offer a SAS Data connection, but they where outside our price range