BookmarkSubscribeRSS Feed
proc_da
Calcite | Level 5

What is a header code, is it generated automatically if yes, How??

if no, how to generate it?

I can relate fsk_header & fsk_header_element but....

Could any one explain about the concept of  header code please..

 

P.S. SAS AML 5.1

1 REPLY 1
Patrick
Opal | Level 21

@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.