next up previous contents index
Next: IF: Conditional Execution Up: File Handling Previous: SAVE Statement   Contents   Index


MAKESEQ Statement

A file containing a machine sequence can be generated in MAD-9 by the command

MAKESEQ,LINE=string,NAME=string,FILE=string;
The named beam line or sequence is written as a flat SEQUENCE with the given name on the named file. If the OPTION,MAD8 is active, the format is MAD-8 format, otherwise it is MAD-9 format. All required elements and parameters are also written. All expressions are evaluated and only their values appear in the output. The command has the following attributes:
LINE
The line for which a flat sequence is to be written.
NAME
The name to be given to the sequence written.
FILE
The name of the file to receive the output.



MAD User Guide, http://wwwslap.cern.ch/mad/