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 > %param keyword (SDL script)
  
%param keyword (SDL script)
The %param keyword is used with the %load keyword to pass a parameter to a called generation template. The %param keyword specifies a local variable to pass to the called generation template.
* 
The called generation template can get the value of the passed parameter through the %getparam keyword and set the value of the passed parameter through the %setparam keyword.
Syntax
%load "<template file name>" [%param" <parameter 1>" %param "<parameter 2>" etc.]
In this example, the HasStereotype.sdl is called and passed two parameters, that is the strStereotypeName and nHasStereotype local variables.
%localstring "strStereotypeName"
%localnumeric "nHasStereotype"
%load "HasStereotype.sdl" %param "strStereotypeName" %param "nHasStereotype"