output filename
The output command saves the values of all variables and the definitions of all objects (except the rows in blocks) to a CRE script file which may be read in with input.