@ballardw is correct -- the DISCRETEORDER option will not work with VBARBASIC/HBARBASIC.
As a general principle, the VBAR statement should be favored over the VBARBASIC statement, except for two notable situations:
You want to overlay a plot on top of the bar chart that is not allowed by the VBAR statement. If you compute the statistics outside of SGPLOT, you would normally use a VBARPARM statement for this situation. However, if the statistics are simple (freq, sum , and mean), VBARBASIC is a good statement to use instead of having to do a separate compute step.
You want to overlay a non-grouped line chart on a grouped bar chart. For this situation, you would normally compute the statistics outside of SGPLOT and use a SERIES and a VBARPARM. However, using VBABASIC might save you one compute step.
Hope this helps!
... View more