One enhancement had been made for a use case we had at the time where if we were running an archival extraction, and we wanted to archive 3 years ago or more if it was before the 1st of the month, we could specify this (AI is a D format - P4 in ADABAS - field):
EXTRACT fin_trans_xref_prod(fin_trans_xref_prod.AI < TODAY(-3Y,DATX,”DD=01”))
Now we have a use case where we want to only extract records if it was before January 1, three years ago. I have tried all kinds of things like (AB is a D format - P4 in ADABAS - field):
EXTRACT sp_adjustments_prod(sp_adjustments_prod.AB < TODAY(-3Y,DATX,”MM=01,DD=01"))
EXTRACT sp_adjustments_prod(sp_adjustments_prod.AB < TODAY(-3Y,DATX,”MM=01 DD=01"))
EXTRACT sp_adjustments_prod(sp_adjustments_prod.AB < TODAY(-3Y,DATX,”MM=01",“DD=01”))
EXTRACT sp_adjustments_prod(sp_adjustments_prod.AB < TODAY(-3Y,DATX,”MMDD=0101"))
I cannot figure out how to do this, and the ADRExtractionSyntaxReference.pdf doesn’t seem to give any clues. Is this even possible? Seems this would be a common archival rule to apply.
Please advise.
Thanks,
Brian