Page width and height

Top  Previous  Next

Users may wish to exercise control over page width and length.  The default page length is 60 lines.  This often causes longer files to contain a lot of GAMS headers in inconvenient spots.  One can respecify page size in several ways.

 

Job specific page characteristics are specified on the GAMS call using the general syntax

 GAMS modelname ps=n1 pw=n2

 where ps gives the page length and can be as small as 30 or as big as 9999 and pw the page width which must be between 72 and 32767.

 More specifically

 GAMS trnsport ps=9999 pw=100

 

The default page length and width can be customized by editing a file in the GAMS source directory as discussed in the Customization chapter.  In particular on Windows 95/98 machines the file is called GMSPRM95.txt (Note on NT and UNIX/LINUX machines it has a slightly different name -- gmsprmnt.txt and gmsprmun.txt respectively).  In this file one defines the page length with a line ps followed by a space and a number

 ps 1000

 and page width with

 pw 100

 

In the IDE job specific page characteristics are specified in the GAMS execution parameter box in the upper right hand corner adding

 ps=9999 pw=100

 

 where ps gives the page length and can be as small as 30 or as big as 9999 and pw the page width which must be between 72 and 32767.

 

In the IDE characteristics for all jobs are specified using the file options menu choice under the output tab in the boxes for page width and page height (same as page size above).  The page height and can be as small as 30 or as big as 9999 and the page width which must be between 72 and 32767.