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;
... View more