Gdxout

Top  Previous  Next

This dollar command is used in a sequence to unload specified items to a GDX file.  It is employed using the syntax

 

$Gdxout filename

 

where filename gives the name of the GDX file (with or without the extension GDX) and the command opens the specified GDX file for writing

and

$Gdxout

 

where the command closes the specified GDX file.

The command must be used in conjunction with the command $Unload.

Example:

(gdxtrnsport.gms)

$gdxout tran

$unload i j

$unload d

$unload f

$unload b=dem a=sup

$gdxout

Notes:

A Gdxout command followed by the name of the GDX file to use must precede all $Unload commands and opens the file.
A Gdxout command without following arguments must succeed the Unload command or commands and closes the file.  More than one Unload can appear in between.