|
Quoted text |
Top Previous Next |
|
One of the allowable types of items in a put command is quoted text. The blue entries just below all involve instances of quoted text which are used in the example putex1.gms
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
The resultant output file follows with the blue entries corresponding to quoted text generated by the put commands above.
Run on 01/05/02 using source file C:\GAMS\GAMSPDF\PutEX1.GMS
Report for New York ------------ Scenario ------------ base scen1 scen2 scen3 Incoming From Seattle 50 350 0 0 Incoming From San Diego 275 275 0 525 Quantity demanded 325 625 0 525
put 'Run on ' system.date ' using source file ' system.ifile; put "Run on " system.date " using source file " system.ifile; put 'Run on ' system.date " using source file " system.ifile;
put 'Marginal Cost of meeting demand ':33 @35); put 'Marginal Cost of meeting demand ':>33 @35); |