I need to check the last record of a VSAM file, which contains a date/time stamp and the time is in pos(7,6), to be within 10 minutes of current time.
I am using ICETOOL with:
//TOOLIN DD *
SUBSET FROM(IN1) TO(OUT1) INPUT KEEP LAST USING(CTL1)
/*
//CTL1CNTL DD *
OPTION COPY
OUTFIL BUILD=(&TIME1,4X,7,6)
/*
SUBSET FROM(IN1) TO(OUT1) INPUT KEEP LAST USING(CTL1)
/*
//CTL1CNTL DD *
OPTION COPY
OUTFIL BUILD=(&TIME1,4X,7,6)
/*
which prints the two times and then the user could compare.
However, when I try to do the subtration, so I can only print the difference (and subsequently automatically raise alerts of not), I try the following in CTL1CNTL:
OUTFIL BUILD=(&TIME1,UFF,SUB,7,6,UFF)
and it failes with SYNTAX ERROR
OUTFIL BUILD=(&TIME1,UFF,SUB,7,6,UFF)
£
ICE007A 1 SYNTAX ERROR
£
ICE007A 1 SYNTAX ERROR
Any hints on how better I would do the arithmetic?
Thanks GG