Of course it is possible. Please consider the following texample with artificial data:
<hansl>
nulldata 500
setobs 1 1 --special-time-series
genr time
set seed 20140413 # For reproduction
series wn = randgen(n,0,1)
# Stationary ARMA(2,2) model
series z = 4.5
z = 1 + 0.25*z(-1) + 0.55*z(-2) + wn + 0.5*wn(-1) + 0.5*wn(-2)
# Visual eyecandy, can be omitted
# gnuplot z time --with-lines --output=display
#corrgm z 24 --plot=display
matrix AICs = zeros(6,6)
matrix BICs = zeros(6,6)
loop i=1..6 --quiet
loop j=1..6 --quiet
arima $i 0 $j ; z
AICs[$i,$j]=$aic
BICs[$i,$j]=$bic
endloop
endloop
mwrite(AICs,"AICs.csv")
mwrite(BICs,"BICs.csv")