@proc_da
Which AML version?
There are different types of headers - it's in the docu.
For auto-generated headers: There are SAS AML Solution macros which generate a SAS data step program based on the header registration and scenarios registered against the header. These macros also read the job calendar and only pick up the scenarios to be run for the current date.
The generated code in a nutshell looks like:
data alert;
/** header section +*/
set prep_file;
array ....
/** scenario section **/
/* scenario 1 */
if <some condition> then
output;
/* scenario 22 */
if <some other condition> then
output;
run;
I haven't worked with the high performance version (VA) but it's supposed to work similarly on a conceptual level.