|
Skip to a specified row: # |
Top Previous Next |
|
When GAMS encounters a # in a put statement the writing position is moved to that row of the output file whether it be down or up from the current line. The file putex4.gms shows an example
Put #3 'Hello' #2 'Goodbye' #1 'Hey these are reversed';
which would yield
Hey these are reversed Goodbye Hello Notes:
scalar lineonpage /15/; Put 'Hello' #(lineonpage+3) 'Goodbye';
|