Kbase 16451: How to embed a formfeed in output using PUT CONTROL "~014"
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How to embed a formfeed in output using PUT CONTROL "~014"
If a 4GL developer wants to control paging within their application,
they might have code similar to this:
OUTPUT TO somefile.
PUT <stuff>.
At some point, they would have to embed a formfeed because the PAGE
statement requires PAGED output in order to take effect. The way
to do this is documented in the Language Reference manual in two
places. In the "Special Characters" section regarding the "~"
character, there is a table which shows the octal representation
of various control sequences, including the Form Feed (octal 014).
Secondly, the PUT statement documentation includes the CONTROL option
and gives an example of how to use it with octal codes. The end
result is:
PUT CONTROL "~014".
This statement will produce the <ctrl-L> needed to generate the
actual formfeed on the printer.
Progress Software Technical Support Note # 16451