BookmarkSubscribeRSS Feed
Giampaolo
Obsidian | Level 7

Dear SAS users,

After I run proc template sas keeps running and I receive the ERROR 79-322: Expecting a -.

Any idea, how can I stop SAS from processing the command and fix the issue?

Thank you!

Proc template;
define statgraph BrokenAxis1;
begingraph /datacolors=(CXD05B5B CX6F7EB3) datacontrastcolors=(red blue);
layout lattice / Columns=2 Rows = 2 columnweights= (.5 .5)
Rows=2 rowweights= (.47 .53) rowgutter = 5
rowdatarange=UNION;
/* Lattice header definitions */
column2headers ;
entry textattrs=(size=9 ) "ELECTIVE"/*/pad=(left=15 px)*/;
entry textattrs=(size=9 ) "EMERGENT"/*/pad=(left=15 px)*/;
endcolumn2headers;
/*define row 1 column 1*/
layout overlay / xaxisopts= (display= (line))
yaxisopts=(display=(line ticks tickvalues label)
label="Total Cost (X$10,000)"
griddisplay=on
linearopts=(includeranges=(min-170000 380000-384000)
tickvalueformat= bigvalues.
tickvaluelist=(20000 40000 60000 80000 100000 120000 140000 160000 380000)));

boxplot x=&GRP Y=eval(ifn(&strata=0,Total_cost, .))/
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&XVAR
groupdisplay=cluster
meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)
name ="L" ;
endlayout;
/*define row 1 column 2*/

layout overlay /xaxisopts= (display= (line))
yaxisopts=(display=(line ticks tickvalues)
griddisplay=on
linearopts=(includeranges=(min-170000 380000-max)
tickvalueformat= bigvalues.
tickvaluelist=(20000 40000 60000 80000 100000 120000 140000 160000 380000)));

boxplot x=&GRP Y=eval(ifn(&strata=1,Total_Cost, .))/
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&XVAR
groupdisplay=cluster
meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)
name ="L" ;
endlayout;
/*define row 2 column 2*/
layout overlay /xaxisopts=(display=(ticks tickvalues line))
yaxisopts=(display=(ticks tickvalues line label)label="Postop LOS (days)"
LABELFITPOLICY=SPLITALWAYS LABELSPLITCHAR='#' LABELSPLITCHARDROP=TRUE
griddisplay=on
linearopts=(tickvalueFormat= best12.
includeranges=(min-42 115-118)
tickvaluelist=(5 10 15 20 25 30 35 40 115)));

boxplot x= &GRP Y=eval(ifn(&strata=0,PostopLOS, .)) /grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&XVAR
groupdisplay=cluster

meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)name ="L" ;

endlayout;

/*define row 2 column 2*/

layout overlay /xaxisopts=(display=(ticks tickvalues line))
yaxisopts=(display=(ticks tickvalues line)
griddisplay=on
linearopts=(tickvalueFormat= best12.
includeranges=(min-42 115-max)
tickvaluelist=(5 10 15 20 25 30 35 40 115)));

boxplot x= &GRP Y=eval(ifn(&strata=1,PostopLOS, .)) /
grouporder=ASCENDING
INCLUDEMISSINGGROUP=FALSE
group=&XVAR
groupdisplay=cluster

meanattrs = (SYMBOL = DIAMOND weight=bold )
medianattrs= (thickness = 2)name ="L" ;

endlayout;
sidebar / align = bottom; discretelegend "L" / halign=center across= 2 border=true VALUEATTRS= (size= 9);
endsidebar;
endlayout;
endgraph;
end;
run;
quit;
2 REPLIES 2
sbxkoenk
SAS Super FREQ

Hello,

we need to know which SAS version you are running.

In SAS 9.4Mx, there's a BREAK icon on the toolbar above the LOG-screen (just left from the HELP icon).

In Viya, you can also interrupt processing, but I don't have a VIYA session alive at this moment.

Koen

PaigeMiller
Diamond | Level 26

Show us the LOG for this run of PROC TEMPLATE. We need to see all of the LOG for PROC TEMPLATE, every single character, 100% of it.

 

Please format the log so that it is readable, by clicking on the </> icon and pasting the LOG as text into the window that appears. DO NOT SKIP THIS STEP!

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1159 views
  • 0 likes
  • 3 in conversation