Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > Keywords > Overview of keywords (SDL script) — Keywords for generating files and log messages
  
Overview of keywords (SDL script) — Keywords for generating files and log messages
Specifying the file to which code is generated:
%endfile
Specifies that code is no longer generated to the active file. Closes the active file and redirects output to the previous file on the output stack.
%file
Specifies the file to which code is generated.
%fileexists
Tests whether a file exists.
Generating messages to the Final Synchronization Log:
%activity
Adds text to the ACS Final Synchronization Log.
%error
Adds an error message to the ACS Final Synchronization Log.
%warning
Adds a warning message to the ACS Final Synchronization Log.