SXFWRITE,FILE=filename;writes the currently (i.e. last) USEd sequence with all alignment and field errors in [SXF] format onto the file specified. This then represents one "instance" of the sequence, where all parameters are given by numbers rather than expressions; the file can be read by other programs to get a complete picture of the sequence.
The command
SXFREAD,FILE=filename;reads a file in SXF format, stores the sequence away and USEs it(!) in order to keep the existing errors. The following does therefore work:
Example:
job 1: ! define sequence MYSEQU use,mysequ; ! add alignment errors and field errors sxfwrite,file=file; stop; job 2: sxfread,file=file; twiss; stop;hansg, January 24, 1997