When you compile a SAM, DB/Assist verifies the SAM and generates ESL action routines for each valid SQL statement in the SAM. It then generates the code for these action routines in the file that you specify:
Finally, DB/Assist creates a bind file for the SAM and, optionally, a database access package.
Understanding the Compile Process provides detailed information about what happens during a compile, and gives step-by-step procedures for compiling a SAM when you run DB/Assist.