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 > System variables > sysFileExtension system variable (SDL script)
  
sysFileExtension system variable (SDL script)
This system variable applies only to SDL scripts for Java, IDL and SQL.
The sysFileExtension system variable (a global string) returns the File Extension value that is set in the Launch ACS/TDK dialog when generating Java.
This system variable is useful when specifying a file to generation code to.
In this example, the sysFileExtension system variable is used when setting the name of the generated file.
$ Ensure file extensions have dots
%if "." %isin %getvar "sysFileExtension" %then
%else
%setvar "sysFileExtension" = (".") & (%getvar "sysFileExtension")
%endif

$ Generate create file
%file (%custom "SQL Name") & (%getvar "sysFileExtension")