I'm not sure if I getting this right. Do you already have a batch script, and want to add some more functionality to it? What environment are you in (Windows, UNIX ZOS...) ?
You can create and manage batch processing both from OS scripting languages and by SAS processing. The choice between these options depends on your application, the administrators knowledge, scheduling tool, corporate standards etc.
Regards,
Linus
Data never sleeps