Multiple syntax errors. For setting the values, you do not use the initial @ or the double @@ e.g.
set wbvdw@frame ?vdw
To obtain the stored value, both are necessary
echo @wbvdw@@frame
Also, you cannot print the entire array via
echo @wbvdw
but must again loop over the indices.
It may be easier to write the data to a file as it being generated, e.g.
! OPEN FILE, SET ECHO UNIT
open unit 11 form write name intere.txt
echu 11
SET frame 0
LABEL TimeFrameTernary
TRAJ READ
inter SELECT some1 END SELECT some2 END
echo @FRAME ?VDW ?ELEC ?ENER
increment frame
if frame .LT. ?NFILE GOTO TimeFrameTernary