|
re.: calculate 13 months ago
Perderabo, thanks but your example didnīt works for me.
but I found the solution:
in my main program I calculate 13 months ago
hoje=`date +%Y%m%d`
data_13m=`expr ${hoje} - 10200`
and then, I've send the variable data_13m to the file.scl
export PAR_SCL3=${data_13m}
in the file.scl I did:
.
.
/EXECUTE "$PAR_SCL3"
/INFILE=$PAR_SCL1
/FIELD=(CONTA_CORRENTE, POSITION=1, SIZE=13)
/FIELD=(DATA_VENCIMENTO, POSITION=50, SIZE=10)
/CONDITION=(cond1, TEST=(DATA_VENCIMENTO > $PAR_SCL3 ))
and it worked !
by.
|