Generic Expansion Tokens

 

Generic expansion tokens are tokens which insert generic (non structure specific) information or take some generic action, and can be used at anywhere in a template file.

Generic Token

Description

<AUTHOR>

Inserts your name, which you specify via the environment variable CODEGEN_AUTHOR.

<CODEGEN_VERSION>

Inserts a CodeGen version identifier.

<COMPANY>

Inserts your company name, which you specify via the environment variable CODEGEN_COMPANY.

<COUNTER_1_DECREMENT>

Decrements the value of counter 1 by one.

<COUNTER_1_INCREMENT>

Increments the value of counter 1 by one.

<COUNTER_1_RESET>

Resets the value of counter 1 to zero.

<COUNTER_1_VALUE>

Inserts the current value of counter 1 into the code stream.

<COUNTER_2_DECREMENT>

Decrements the value of counter 2 by one.

<COUNTER_2_INCREMENT>

Increments the value of counter 2 by one.

<COUNTER_2_RESET>

Resets the value of counter 2 to zero.

<COUNTER_2_VALUE>

Inserts the current value of counter 2 into the code stream.

<DATABASE>

 

Inserts the name of the current relational database being targeted. For more information refer to the command line option -database.

<DATE>

Inserts the current date in MM/DD/YYYY format.

<DATE1>

Inserts the current date in DD/MM/YYYY format.

<DAY>

Inserts the current numeric day of the month in DD format

<ENV:variable>

Inserts the value of an environment variable into the output stream. If the environment variable does not exist then an error is generated.

<ENVIFEXIST:variable>

Inserts the value of an environment variable into the output stream. If the environment variable does not exist then the token will be ignored and no error will be generated.

<FILE:name.ext>

Inserts the contents of a file into the output stream. The file specification can include an environment variable. If the file does not exist then an error is generated.

<FILEIFEXIST:name.ext>

Inserts the contents of a file into the output stream. The file specification can include an environment variable. If the file does not exist then the token is ignored and no error is generated.

<GUID1>, <GUID2>, <GUID3>

Inserts one of three GUID values that are unique to the current CodeGen task.

<HOST_DNS_NAME>

Inserts the DNS name of the computer that you are running CodeGen on.

<HOST_IP_ADDRESS>

Inserts the IP address name of the computer that you are running CodeGen on.

<MONTH>

Inserts the current numeric month number in MM format.

<MONTHNAME>

Inserts the alphanumeric name of the current month.

<MONTHSHORTNAME>

Inserts the abbreviated alphanumeric name of the current month.

<NAMESPACE>

Inserts the default namespace which can be specified either via the environment variable SYNDEFNS, or via the -n command line option.

<TEMPLATE>

Inserts the base name of the template file. The base name of the template is the name of the template file with no file extension.

<RANDOM_10>

Inserts a random number in the range of 1 to 10.

 

<RANDOM_100>

Inserts a random number in the range of 1 to 100.

 

<RANDOM_1000>

Inserts a random number in the range of 1 to 1000.

 

<RANDOM_INT>

Inserts a random number in the range of 1 to 2147483647.

 

<TIME>

Inserts the current time in 24 hour HH:MM format.

<WEEKDAY>

Inserts the name of the current weekday.

<YEAR>

Inserts the current year in YYYY format.

 

 


Copyright © 2018  Synergex International, Inc.