Hello! I am trying to do a simply sample selection in Enterprise Guide, but keep getting the following error, even with the data loaded: ERROR: Procedure SURVEYSELECT not found. I've tried a number of workarounds, to no avail. Would anyone be able to assist?
Here is the code:
/* -------------------------------------------------------------------
Code generated by SAS Task
Generated on: Friday, August 17, 2018 at 8:44:17 AM
By task: Random Sample
Input data: SASApp:WORK.STNG_RADV_POPULATION_MISHAWN
Server: SASApp
------------------------------------------------------------------- */
TITLE; FOOTNOTE;
PROC SURVEYSELECT DATA=WORK.STNG_RADV_POPULATION_MISHAWN()
OUT=WORK.RANDRandomSampleSTNG_RADV_POP
METHOD=SRS
N=100
SEED=26
NOPRINT;
RUN;
QUIT;
Here is the log result:
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Audit Sample';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='';
6 %LET _CLIENTPROJECTPATHHOST='';
7 %LET _CLIENTPROJECTNAME='';
8
9 ODS _ALL_ CLOSE;
10 ODS NOPROCTITLE;
11 OPTIONS DEV=PNG;
12 GOPTIONS XPIXELS=0 YPIXELS=0;
13 FILENAME EGSR TEMP;
14 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
15 STYLE=HTMLBlue
16 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
17 NOGTITLE
18 NOGFOOTNOTE
19 GPATH=&sasworklocation
20 ENCODING=UTF8
21 options(rolap="on")
22 ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
23
24 GOPTIONS ACCESSIBLE;
25 /* -------------------------------------------------------------------
26 Code generated by SAS Task
27
28 Generated on: Friday, August 17, 2018 at 8:44:17 AM
29
30 By task: Random Sample
31
32 Input data: SASApp:WORK.STNG_RADV_POPULATION_MISHAWN
33
34 Server: SASApp
35 ------------------------------------------------------------------- */
36 TITLE; FOOTNOTE;
37
38 PROC SURVEYSELECT DATA=WORK.STNG_RADV_POPULATION_MISHAWN()
ERROR: Procedure SURVEYSELECT not found.
39 OUT=WORK.RANDRandomSampleSTNG_RADV_POP
40 METHOD=SRS
41 N=100
42 SEED=26
43 NOPRINT;
44 RUN;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SURVEYSELECT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
45
46 QUIT;
47
48
2 The SAS System 07:35 Friday, August 17, 2018
49 GOPTIONS NOACCESSIBLE;
50 %LET _CLIENTTASKLABEL=;
51 %LET _CLIENTPROCESSFLOWNAME=;
52 %LET _CLIENTPROJECTPATH=;
53 %LET _CLIENTPROJECTPATHHOST=;
54 %LET _CLIENTPROJECTNAME=;
55
56 ;*';*";*/;quit;run;
57 ODS _ALL_ CLOSE;
58
59
60 QUIT; RUN;
61
Run this code:
proc setinit; run;
The log will show installed products. If SAS/Stat does not appear you aren't licensed for the module that contains Surveyselect. You would have to have that added to the license.
If SAS/Stat does appear in the setinit information then run this code:
proc product_status; run;
If SAS/Stat does not appear then it was not installed and a re-install may be in order.
Or perhaps your SAS Admin has restricted use of some procedures. Discuss that with the admin.
Run this code:
proc setinit; run;
The log will show installed products. If SAS/Stat does not appear you aren't licensed for the module that contains Surveyselect. You would have to have that added to the license.
If SAS/Stat does appear in the setinit information then run this code:
proc product_status; run;
If SAS/Stat does not appear then it was not installed and a re-install may be in order.
Or perhaps your SAS Admin has restricted use of some procedures. Discuss that with the admin.
Thank you, ballardw! It appears SAS/Stat isn't installed, appreciate your help!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.