What scheduler are you using?
TWS will calculate a date 30 days previously in any fomat you require and substitute that in to the JCL at run time.
I daresay other schedulers will have similar functionality. That would eliminate the need for a previous step to genereate the ACF control cards.