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")