In case it's of interest I'm attaching a revised version of
Ignacio's script that interfaces with tramo. This version uses
some experimental features (they're in CVS and the snapshot),
designed to make this sort of thing easier -- in particular the
ability to define string variables (which can then be accessed
using a prefix of "@").
It checks for missing values when writing the tramo data file, and
ensures that the variable names for the transformed variables will
not overflow the 15-character limit.
The script is tested on Linux (only).