How transferring variable names works

Q1. How Stat/Transfer converts variable names from one format to another?

A. Stat/Transfer use several various algorithms to translate variable names in the following precedence.

  • The target package always takes precedence of any other options. Stat/Transfer ensure that variable names are legal in the target output package.
  • The translating mechanism of the variable names is very flexible to be applied to the output files.
  • User can also specify additional options in the General Options tab

Q2. What is maximum size of the variable name?

A. The original variable names will be preserved if possible and size would be determined by target(output) package.

Q3. What are the valid characters used for variable names?

A. Stat/Transfer uses rules from target package to enforce only legal characters as the first character in the name, set of the characters used in the middle of the name and a valid character as last character.

Q4. How user defined options can change variable names in the target package?

A. User can change how variables name will look in the target package under Option Tab , and the rules will be applied in the following order:

  • Stat/Transfer would apply size rule first and translates input names UTF-8, into the output encoding(please refer to encoding FAQ, add link here), determining how many characters can fit into output format and to ensure that variable name still will be legal within output package.
  • User defined options would be applied next

Q5. How variable name would change - variable name has valid character(s) for input package, but invalid character(s) for output package?

A.

  • If the first character is invalid, entire variable name would be preserved  'a' or 'A', would be places as very first character
  • If the invalid character is in the middle of the name, it will be replaced by '_'
  • If the invalid character is the last one, it will be replaced with '0' (zero)

Q6.What happens after replacing invalid characters 4 variables would have same names

A. If duplicate names exist, Stat/Transfer would use following translation mechanism

AAAA, AAAA, AAAA, would be translated to AAAA, AAA0 and AAA1, to ensure that names are unique.

 

Please refer to application vendor documentation to find out what are the valid naming conventions for specific packages

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.