|
Write position controls |
Top Previous Next |
|
Three types of controls can be used to determine where writing is done in the file. The symbol @ controls the column number while / skips to a new line and # goes to a specified line number. The file putex1.gms illustrates the use of @ and /
put 'Run on ' system.date ' using source file ' system.ifile ///; loop(Destinaton, put 'Report for ' , Destinaton.tl:15 put @40 '------------ Scenario ------------' /; put @41; loop(scenarios,put scenarios.tl:10); put /; loop(source$sum(scenarios, abs(savtransport(Source,Destinaton,scenarios))), put 'Incoming From ' source.tl @35; loop(scenarios, put savtransport(Source,Destinaton,scenarios):10:0); put /; ); put 'Quantity demanded ' @35
Notes on each follow.
|