P out

Purpose: Outputs a string without encoding.

 p-out <string> [ length <length> ] [ new-line ]

p-out outputs a string expression given by <string>, without any encoding (meaning a string is output exactly as it appears).

If "length" clause is used, then only <length> leading bytes of <string> are output.

If "new-line" clause is used, then a new line ("\n") is output after <string>.

Note that all bytes of <string> are output, even if <string> contains null-bytes.
Examples
To output data verbatim to a client:
 set-string mydata="Hello world"
 p-out mydata

Writing to client, outputting text followed by a horizontal rule - the text is output to a client (such as browser) as it is, and the browser will interpret tags "<br/>" and "<hr/>" as a line break and a horizonal line and display them as such:
 p-out "This is a non-encoded output<br/>" new-line
 p-out "<hr/>"

Create a query text string by means of write-string statement:
 //
 // Construct the run-time text of dynamic SQL
 //
 write-string qry_txt
    @select * from <<p-out table_name>>
 end-write-string

See also
Output
finish-output  
flush-output  
output-statement  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-source-file  
p-source-line  
p-url  
p-web  
See all
documentation


Copyright (c) 2019-2024 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.