BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mdclary
Calcite | Level 5

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        

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

View solution in original post

2 REPLIES 2
ballardw
Super User

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.

mdclary
Calcite | Level 5

Thank you, 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 4055 views
  • 1 like
  • 2 in conversation