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 > %string keyword (SDL script)
  
%string keyword (SDL script)
This keyword declares a global variable as a string.
Use this keyword only in the Generate.sdl template.
* 
After declaring a global variable, you can set its content through the %setvar keyword and read its content through the %getvar keyword.
Syntax
%string "<name of variable>"
This example sets up a variable of type string named Storage.
%string "Storage"