BookmarkSubscribeRSS Feed
Juan_Jose
Calcite | Level 5

Hello, I am having a hard time understanding the SGPLOT, I was handled a code to review and run and found the following error. Any information, documentation, would really help me

 

proc sgplot data = seg_tmp.all_v2;
format MNTH_SMRY_START_DT dtmonyy.;
vbox log_tot_trans_am/ DATASKIN = gloss nomean category=MNTH_SMRY_START_DT;
BY SEG;
label MNTH_SMRY_START_DT = 'Month';
xaxis label = 'Month';
run;

 

And the following errors:

 

proc sgplot data = seg_tmp.all_v2;
 format MNTH_SMRY_START_DT dtmonyy.;
 vbox log_tot_trans_am/ DATASKIN = gloss nomean category=MNTH_SMRY_START_DT;
                                       --------
                                       22
                                       76
ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, BOXWIDTH, CAPSHAPE, CATEGORY, CLUSTERWIDTH, CONNECT,
CONNECTATTRS, DATALABEL, DATALABELATTRS, DISCRETEOFFSET, EXTREME, FILL, FILLATTRS, FREQ, GROUP, GROUPDISPLAY,
GROUPORDER, LABELFAR, LEGENDLABEL, LINEATTRS, MEANATTRS, MEDIANATTRS, MISSING, NAME, NOCAPS, NOFILL, NOMEAN,
NOMEDIAN, NOOUTLIERS, NOTCHES, OUTLIERATTRS, PERCENTILE, SPREAD, TRANSPARENCY, WHISKERATTRS, X2AXIS, Y2AXIS.
ERROR 76-322: Syntax error, statement will be ignored.
 BY SEG;
 label MNTH_SMRY_START_DT = 'Month';
 xaxis label = 'Month';
 run;

3 REPLIES 3
PGStats
Opal | Level 21

The message says that the DATASKIN option is not allowed there.

PG
Reeza
Super User

Do you have the exact same versions of SAS?

 

If not, that may be why.

 

You can find your version of SAS using:

 

%put &SYSVLONG;

 

DATASKIN is an option as of SAS 9.4 TS1M1

 

Here's the documentation:

http://documentation.sas.com/?docsetId=grstatproc&docsetTarget=n1waawwbez01ppn15dn9ehmxzihf.htm&docs...

ballardw
Super User

Which version of SAS are you running this code in? I believe dataskin for VBOX is pretty recent addition and may not be available in your version. It was added in SAS 9.4.1 (the first maintenance release of 9.4)

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 587 views
  • 0 likes
  • 4 in conversation