09-23-2021
Vince_SAS
Rhodochrosite | Level 12
Member since
06-23-2011
- 526 Posts
- 449 Likes Given
- 36 Solutions
- 188 Likes Received
-
Latest posts by Vince_SAS
Subject Views Posted 16707 09-02-2021 12:37 PM 1878 07-13-2021 08:54 AM 1931 06-27-2021 01:40 PM 5679 06-10-2021 07:44 AM 1866 04-26-2021 03:17 PM 1470 03-09-2021 03:39 PM 1545 03-01-2021 07:44 AM 998 02-08-2021 07:47 AM 4697 01-25-2021 10:09 AM 2369 01-24-2021 04:00 PM -
Activity Feed for Vince_SAS
- Got a Like for Re: determine stored process web address. 01-05-2024 07:29 AM
- Got a Like for Re: How to make part of the variable bold in report. 04-20-2023 04:27 AM
- Got a Like for Re: Macro variable value containing superscript 2. 02-07-2023 04:02 AM
- Got a Like for Re: Help ODS HTML Output. 01-26-2023 04:24 AM
- Got a Like for Re: Suppress proc report output. 12-06-2021 06:50 AM
- Got a Like for Re: Stored Process - Output xlsx with multiple sheet to Excel client. 11-01-2021 02:44 AM
- Got a Like for Re: Reading XLSX file and change the all column type into character. 09-23-2021 04:51 AM
- Got a Like for Re: Controlling target frame of link generatee by proc sgplot. 09-02-2021 01:30 PM
- Posted Re: How can I change my SAS into English? on SAS Software for Learning Community. 09-02-2021 12:37 PM
- Liked Welcome to the SAS Software for Learning Community! for Cynthia_sas. 07-30-2021 02:02 PM
- Got a Like for Re: SAS OnDemand - For companies, legal?. 07-13-2021 02:33 PM
- Got a Like for Re: SAS OnDemand - For companies, legal?. 07-13-2021 09:26 AM
- Posted Re: SAS OnDemand - For companies, legal? on SAS Software for Learning Community. 07-13-2021 08:54 AM
- Got a Like for Re: What release of SAS is used with SAS On Demand for Academics?. 06-27-2021 01:43 PM
- Posted Re: What release of SAS is used with SAS On Demand for Academics? on SAS Software for Learning Community. 06-27-2021 01:40 PM
- Liked Re: What release of SAS is used with SAS On Demand for Academics? for Sajid01. 06-27-2021 01:39 PM
- Posted Re: How to change the language settings in SAS Viya for Learners? on SAS Communities Library. 06-10-2021 07:44 AM
- Liked Where is _DATAOUT documented for Tom. 05-22-2021 10:10 AM
- Liked SAS® Job Execution Web Application: What It Is & When to Use It for joeFurbee. 05-04-2021 03:07 PM
- Posted Re: Proper encoding of Symbols passed to SAS over the Web on SAS Programming. 04-26-2021 03:17 PM
-
Posts I Liked
Subject Likes Author Latest Post 5 2 4 5 2 -
My Liked Posts
Subject Likes Posted 1 01-25-2017 01:19 PM 1 08-13-2018 12:47 PM 1 10-09-2018 12:20 PM 1 08-15-2018 05:51 PM 1 12-14-2018 08:39 AM -
My Library Contributions
Subject Likes Author Latest Post 2
06-22-2020
10:01 AM
What type of SAS Visual Analytics object would you like to use to send data to the job?
Some objects, like a List Table, support adding a URL Link action. Selecting a row in the List Table passes data from the row to the specified URL.
Specify the job execution URL and map table columns to parameters in the SAS Visual Analytics Edit URL Link Action dialog.
Vince DelGobbo
SAS R&D
... View more
06-11-2020
03:46 PM
You an use HTML forms to prompt for input in all versions. Prompts similar to what are available in SAS 9 are available in SAS Viya 3.5 and later.
SAS 9.4 and SAS Viya 3.5 Programming Documentation > SAS Job Execution Web Application Samples > Prompts https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=jobexecug&docsetTarget=n0t91q5lsc2b8qn14fd0cgbmylr8.htm#p034lojt1comj4n1xrp2dggcmh9h
Vince DelGobbo
SAS R&D
... View more
06-06-2020
06:55 PM
2 Likes
Maybe something like this will work for you:
options validmemname=extend;
libname xl excel 'C:\temp\numeric.xlsx';
data work.character;
set xl.'sheet1$'n(dbsastype=('a'='char(10)'
'b'='char(10)'
'c'='char(10)'
'd'='char(10)')
);
run;
The EXCEL engine is supported only on Windows, and the bitness of SAS must match the bitness of Windows.
Vince DelGobbo
SAS R&D
... View more
05-16-2020
09:05 PM
1 Like
I have not used this but have some suggestions.
This documentation states that you should not specify the SSLCALISTLOC option:
CAUTION Do not change the SSLCALISTLOC= system option. Starting SAS 9.4M3, the SSLCALISTLOC= system option should not be overridden or changed unless directed by technical support or PSD.
https://go.documentation.sas.com/?docsetId=secref&docsetTarget=p0pul4j64w0mg0n1h1k6z8zhfvaf.htm&docsetVersion=9.4
The LIBNAME statement is in error because the FRED enviroment variable is not defined, causing the path specified to be invalid. You might be able to specify any valid path in the LIBNAME statement.
For example, in SAS University Edition I have a mapped folder My Folders > Data referring to the /folders/myfolders/Data location (view the properties of the folder to see the location). This LIBNAME statement should work if you specify the correct location for the PATH variable and your API key:
options validvarname=any;
%let PATH=/folders/myfolders/Data;
libname fred sasefred "&PATH"
OUTXML=exportgs
XMLMAP="&PATH/exportgs.map"
APIKEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
IDLIST='bopxgsa';
After you get the LIBNAME statement working, then try submitting the DATA step code to read the data:
data work.export_gsa;
set fred.exportgs ;
run;
Vince DelGobbo
SAS R&D
... View more
04-01-2020
12:19 PM
What version of SAS are you using? You can add this code to your stored process and find the version displayed in the SAS log:
%put SAS Version: &SYSVLONG;
What version of the SAS Add-in for Microsoft Office are you using? You can find this information by selecting SAS > Help > About SAS Add-in for Microsoft Office from Excel.
Are you using the ODS tagsets.ExcelXP destination or the newer Excel destination? You might have better results using the newer Excel destination.
Vince DelGobbo
SAS R&D
... View more
03-27-2020
04:40 PM
Here is the link to the SAS Global Forum 2017 paper:
Introduction to SAS Data Connectors and SAS Data Connect Accelerators on SAS Viya https://support.sas.com/resources/papers/proceedings17/SAS0331-2017.pdf
Vince DelGobbo
SAS R&D
... View more
03-27-2020
09:26 AM
Using the SAS Job Execution Web Application is another way to create and schedule jobs containing SAS code (including PROC CAS).
Overview
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=jobexecug&docsetTarget=n055josnxfatfwn1pyr7p1ah7225.htm
Scheduling a Job
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=jobexecug&docsetTarget=p1gukmrin5zv1mn1rvb6afi57b88.htm#n1gt4ch06ktkzbn1qis2t6zislpv
Vince DelGobbo
SAS R&D
... View more
03-12-2020
10:50 AM
Is is necessary to retract it? The presenter FAQ says this:
If my paper is included in the SAS Global Forum 2020 Proceedings, will it be eligible to be presented in SAS Global Forum 2021?
Yes, you may publish your paper in the SAS Global Forum 2020 Proceedings and it will not disqualify you from submitting it as a proposal for 2021. However, your paper will not be automatically accepted for 2021. You must resubmit your paper proposal for SAS Global Forum 2021.
Vince DelGobbo
SAS R&D
... View more
03-11-2020
07:54 AM
The Web site might have timed out while trying to serve the file.
I think that data in that CSV file might differ from what's shown on the Web page. You might need to find a different source of the data.
Vince DelGobbo
SAS R&D
... View more
03-02-2020
08:26 AM
I suggest that you open a track with our Technical Support Department. Here is the link:
https://support.sas.com/en/technical-support/submit-a-support-request.html
Vince DelGobbo
SAS R&D
... View more
02-21-2020
07:41 AM
I suggest that you open a track with our Technical Support department:
https://support.sas.com/en/technical-support/submit-a-support-request.html
They are best able to help you in this case.
Vince DelGobbo
SAS R&D
... View more
02-19-2020
09:48 AM
2 Likes
What @FredrikE said about removing the extra STPBEGIN/END calls is correct, but it's a lot more complicated than that.
Try this slightly reworked version of your code to see if it gives you the result that you need.
%global MAKE
TYPE
REQTYPE;
%macro first_prompt;
%* 1. Get list of distinct vehicle types;
proc sql;
create table work.vehicle_types as
select distinct type
from sashelp.cars
order by type;
quit;
%* 2. Create the first prompt;
data _null_;
set work.vehicle_types end=eof;
file _webout encoding='utf-8';
if (_n_ eq 1) then do;
thissrv = "&_URL";
thispgm = "&_PROGRAM";
put '<br>';
put '<h1> List of Vehicle Types </h1>';
put '<form action="' thissrv +(-1) '" method="get">';
put '<input type="hidden" name="_program" value="'
thispgm +(-1) '">';
put '<input type="hidden" name=reqtype value="print">';
put '<br>';
put '<b>Select Vehicle Type: </b>';
put '<select name="type">';
end;
if type ne '' then do;
put '<option value="' type '">' type;
end;
if (eof) then do;
put '</select>';
put '<br><br>';
put '<input type="submit" value="Submit Request">';
put '</form>';
end;
run;
%mend first_prompt;
%macro second_prompt;
%* 3. Get list of vehicle make for the selected vehicle type;
%put Vehicle Type previously selected was: &TYPE;
proc sql;
create table work.vehicle_makes as
select distinct make
from sashelp.cars
where (type eq "&TYPE")
order by make;
quit;
%* 4. Create the second prompt;
data _NULL_;
set work.vehicle_makes end=eof;
file _webout encoding='utf-8';
if _n_ = 1 then do;
thissrv = "&_URL";
thispgm = "&_PROGRAM";
put '<br>';
put "<h1> List of Vehicle Makes for &TYPE Vehicles </h1>";
put '<form action="' thissrv +(-1) '" method="get" target="_blank">';
put '<input type="hidden" name="_program" value="'
thispgm +(-1) '">';
put '<input type="hidden" name="reqtype" value="print2">';
put '<input type="hidden" name="type" value="' "&TYPE" '">';
put '<br>';
put '<b>Select Vehicle Make: </b>';
put '<select name="make">';
end;
if make ne '' then do;
put '<option value="' make '">' make;
end;
if eof then do;
put '</select>';
put '<br><br>';
put '<input type="submit" value="Submit Request">';
put '</form>';
end;
run;
%mend second_prompt;
%macro report;
%stpbegin;
%* 5. Create the report based on prompt selections;
title 'List of Vehicles Based on Prompt Selections';
proc sql;
select *
from sashelp.cars
where (type eq "&TYPE") and (make eq "&MAKE");
quit;
%stpend;
%mend report;
%if (&REQTYPE eq ) %then %do;
%FIRST_PROMPT
%end;
%if (&REQTYPE eq print) %then %do;
%SECOND_PROMPT
%end;
%if (&REQTYPE eq print2) %then %do;
%REPORT
%end;
Vince DelGobbo
SAS R&D
... View more
02-18-2020
07:53 AM
This message:
ERROR: Insufficient authorization to access /opt/sas/sas94m3/SASApp/config/Lev2/SASApp/_webout.dat.
Indicates that the _WEBOUT FILEREF isn't assigned, and SAS is attempting to write to a file in the server startup directory.
Check the stored process definition and make sure that "Stream" is specified for the "Result capabilities" property.
Vince DelGobbo
SAS R&D
... View more
02-17-2020
10:04 PM
1 Like
That gets back to my earlier question:
@Vince_SAS wrote:
Does your IT department provide any other way to get the files from the UNIX system to the Windows system? Maybe a UNIX location that is mapped to a Windows shared drive or some other technique?
Contact your IT department to see if they have something set up. Many installations have ways to share files between UNIX and Windows systems. If not, then try FTP.
Vince DelGobbo
SAS R&D
... View more
02-17-2020
06:51 PM
Try this sample code:
* Directory on UNIX system, without quotation marks;
%let PATH=directory-specification;
* LIBNAME export example;
libname xl xlsx "&PATH/sashelp.xlsx";
data xl.class; set sashelp.class; run; quit;
libname xl clear;
* PROC EXPORT example;
proc export data=sashelp.retail
file="&PATH/sashelp.xlsx"
dbms=xlsx
replace;
sheet='retail';
run; quit;
* LIBNAME import example;
libname xl xlsx "&PATH/sashelp.xlsx";
data work.retail; set xl.retail; run; quit;
libname xl clear;
* PROC IMPORT example;
proc import out=work.class
file="&PATH/sashelp.xlsx"
dbms=xlsx
replace;
sheet='class';
run; quit;
Vince DelGobbo
SAS R&D
... View more