DATA Step, Macro, Functions and more

Trying to connect locally

Accepted Solution Solved
Reply
Valued Guide
Posts: 860
Accepted Solution

Trying to connect locally

On a monthly basis the SAS server is taken down for a day, in the past I was able to switch to local in EG and work with whatever I had saved on my desktop.  Recently I get the following error, the dataset is built successfully but it throws this error.  Does anyone know why, or an option that would correct the issue?

 

1                                                          The SAS System                          06:21 Wednesday, February 3, 2016

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program3';
4          %LET _CLIENTPROJECTPATH='L:\Folder\libnames.egp';
5          %LET _CLIENTPROJECTNAME='libnames.egp';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
           ________
           180
ERROR 180-322: Statement is not valid or it is used out of proper order.

11         FILENAME EGHTML TEMP;
12         ODS HTML(ID=EGHTML) FILE=EGHTML
13             ENCODING='utf-8'
14             STYLE=HtmlBlue
15             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome94/SASEnterpriseGuide/6.1/Styles/HtmlBlue.css")
16             ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v94/sasgraph.exe#version=9,4")
17             NOGTITLE
18             NOGFOOTNOTE
19             GPATH=&sasworklocation
20         ;
NOTE: Writing HTML(EGHTML) Body file: EGHTML
21         
22         GOPTIONS ACCESSIBLE;
22         GOPTIONS ACCESSIBLE;
           ________
           180
ERROR 180-322: Statement is not valid or it is used out of proper order.

23         data test;
24         input var1-var3;
25         cards;

NOTE: The data set WORK.TEST has 3 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      
29         ;run;

30         
31         GOPTIONS NOACCESSIBLE;
31         GOPTIONS NOACCESSIBLE;
           ________
           180
ERROR 180-322: Statement is not valid or it is used out of proper order.

32         %LET _CLIENTTASKLABEL=;
33         %LET _CLIENTPROJECTPATH=;
34         %LET _CLIENTPROJECTNAME=;
35         %LET _SASPROGRAMFILE=;
36         
37         ;*';*";*/;quit;run;
38         ODS _ALL_ CLOSE;
2                                                          The SAS System                          06:21 Wednesday, February 3, 2016

39         
40         
41         QUIT; RUN;
42     

 

 


Accepted Solutions
Solution
‎02-03-2016 08:10 AM
Occasional Contributor
Posts: 11

Re: Trying to connect locally

Posted in reply to Steelers_In_DC

Hi Steelers

 

Does this look like the problem? http://support.sas.com/kb/35/771.html

 

Maybe that EG option has changed without you realising; if you have SAS/GRAPH on the server but not the desktop you'd then get that error as SAS can't process the graphics options without SAS/GRAPH.

 

Hope this helps

 

- Steve M.

View solution in original post


All Replies
Solution
‎02-03-2016 08:10 AM
Occasional Contributor
Posts: 11

Re: Trying to connect locally

Posted in reply to Steelers_In_DC

Hi Steelers

 

Does this look like the problem? http://support.sas.com/kb/35/771.html

 

Maybe that EG option has changed without you realising; if you have SAS/GRAPH on the server but not the desktop you'd then get that error as SAS can't process the graphics options without SAS/GRAPH.

 

Hope this helps

 

- Steve M.

Valued Guide
Posts: 860

Re: Trying to connect locally

Posted in reply to SteveM_UK

Excellent, thank you!

Super User
Posts: 7,854

Re: Trying to connect locally

Posted in reply to Steelers_In_DC

The final tip in

http://support.sas.com/kb/35/771.html

is also true for version 6.1

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 520 views
  • 2 likes
  • 3 in conversation