System attributes

Top  Previous  Next

Another of the allowable types of items in a put command is the group of system attributes such as today's date and time of day, various file names, solver names and model title.  The attributes are referenced as follows

 

Put system.attribute;

 

An example using these items appears in the files putex1.gms and putsystem.gms.  The component of this file involving system attributes in put commands is as follows:

 

put 'Run on ' system.date '  using source file  ' system.ifile ///;

 

The resultant output is placed on the file myputfile.put and is

 

Run on 01/05/02  using source file  C:\GAMS\GAMSPDF\PutEX1.GMS

 

The complete list of system attributes and their description follows.

 

.CNS

.Date

.DNLP

.Fe

.Fn

.Fp

.Gamsrelease

.Gstring

.Ifile

.Iline

.Lice1  .Lice2

.LP

.MIP

.MINLP

.NLP

.MCP

.MPEC

.Ofile

.Opage

.Page

.Pfile

.Platform

.Prline

.Rdate

.Rfile

.RMINLP

.RMIP

.Rtime

.Sfile

.Sstring

.Time

.Title

.Version

.Prpage