- Set CurrentFileName
CurrentFileName
The predefined string parameter CurrentFileName contains the file
name associated with the file identifier to which output is currently
directed.
StringParamter CurrentFileName;
Definition
The string parameter
CurrentFileNamecontains the file name associated with the file identifier (as specified in itsNameattribute) to which output from thePUTandDISPLAYstatements is currently directed.
Updatability
The value of
CurrentFileNameis only for display purposes. It can be modified programmatically from within the AIMMS model, but the output fromPUTandDISPLAYwill always be sent to the file or window whose name is specified in theNameattribute of the corresponding file identifier.
Note
The physical file name associated with a file identifier can be changed
dynamically, by entering a string parameter in the Name attribute of
the file identifier. The file identifier to which output is currently
directed can be retrieved through the element parameter CurrentFile.
See also
The element parameter CurrentFile. File identifiers are discussed in
The File Declaration of the Language Reference.