You simply missed setting some members in Data Region! If you want to simulate default.lgf you need to specify dimensions and members here:
Like:
JOUR=2015.01
And the script will work correctly for the single time member.
But if you have:
JOUR=2015.01,2015.02
You will have incorrect result!
Correct script will be:
// No XDIM_MEMBERSET!
*WHEN TV_EXTRACTION
*IS EXTR0014
*WHEN JOUR
*FOR %J%= %JOUR_SET%
*IS %J%
*REC(FACTOR=1,JOUR = TMVL(-1,%J%),TV_EXTRACTION =a)
*NEXT
*ENDWHEN
*ENDWHEN
Vadim