BookmarkSubscribeRSS Feed
DaveNon
Calcite | Level 5
Greetings,

I am running SAS 9.2 TS Level 1M0 on a Windows 7 PC, and cannot use ODS LISTING SGE=ON when trying to run PROC SGPLOT. I get the following message in the log file:

ODS LISTING SGE=ON;
---
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, BODY, CLOSE, DATAPANEL, EXCLUDE, FILE, GPATH,
IMAGE_DPI, PACKAGE, SELECT, SHOW, STYLE.
ERROR 76-322: Syntax error, statement will be ignored.

PROC SGPLOT DATA = KMPLOT6;
SERIES X = AGE Y = W0_48;
SERIES X = AGE Y = W50_68;
SERIES X = AGE Y = W70_100;
RUN;
ODS LISTING SGE=OFF;

Any ideas as to why this might be happening?

Dave
4 REPLIES 4
Jay54
Meteorite | Level 14
This option was introduced with SAS 9.2 (TS2M3). With TS2M0, you have to use the SGEDIT ON command in th command line. This has to be done with the Results Window in focus.

Now when you run a ods graphics task (SGPLOT or STAT procedure), editable SGE files will be created and listed in the Results window. You can turn SGEDIT OFF the same way.
DanH_sas
SAS Super FREQ
For 9.2 Level 1, you have to invoke the SGE output a different way. Highlight the RESULTS window, and type "sgedit on" in the command box. Typing "sgedit off" toggles the output off. After Level 1, the way you specified is the correct way to turn on SGE output.

Hope this helps,
Dan
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Are you licensed for SAS/Graph? Use PROC SETINIT to see what you have installed for your SAS system.

Scott Barry
SBBWorks, Inc.
ballardw
Super User
SETINIT shows what is licensed, not what is actually installed. Some organizations will not install portions of what is licensed for some users. So SETINIT is necessary but not sufficient criteria.


Message was edited by: ballardw

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 1720 views
  • 0 likes
  • 5 in conversation