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 > SDL script extensions for TDK > %system variable scope modifier (SDL script)
  
%system variable scope modifier (SDL script)
This topic applies to TDK SDL script extensions. For more information, see Overview of SDL script extensions for TDK (SDL script).
SDL Script Extensions for TDK:
%system %string A $ Declares a global variable that holds its value up
$ the next time GenerateStart.sdl is called
In ACS there is a new kind of variable locality, the %system locality.
The %system prefix causes a variable to preserve its value between different calls to Generate.sdl.
%system variables are usually declared inside GenerateStart.sdl, but this is not a must. In principle, they can be declared everywhere (but inside %operation bodies). Values assigned to %system variables from within the GenerateStart.sdl module are kept up to the next call to GenerateStart.sdl (that will occur during the next generation process).
%system variables can be %string, %numeric, %object and %list types as any other variable in the system.