PL/SQL API jcs.set_text_mode
Summary
Set translation options for jcs.readfile.
note
This interface is obsolete, use open instead.
For historic reasons, the arguments of this routine are numeric. 0 (zero) means 'no', 1 (one) means 'yes'.
If you expect lines longer than 2000 characters, set binary_mode to 1. Lines that are shorter than 2000 characters will be explicitly ended with a newline character; lines that are longer will return multiple sets of 2000 characters without a newline, followed by a line with a newline included.
When the binary_mode is 0, the newline character is not transmitted as part of the line, instead it is implied between subsequent records of rs_text_lines or calls to jcs.readfile.
When this function is not called, the defaults are dependent on the process server parameters readfile_mask_ctrl and readfile_mask_8bit, and binary mode is not set.
Specification
procedure set_text_mode(mask_control_chars in number default null,
mask_8bit_chars in number default null,
binary_mode in number default null)
Parameters
- mask_control_chars - 0 = do not convert control characters (ASCII values 0-31); 1 = convert control characters to an escape sequence '
' - mask_8bit_chars - 0 = set 8-bit mode; 1 = set 7-bit mode (values above 127 are skipped)
- binary_mode - 0 = newline character is not put into buffer; 1 = newline character is put into buffer, and lines are not truncated at 2000 characters
Transaction keyword
The transaction keyword defines how and/or when the changes are committed to the database. A definition of the various transaction keywords can be found on the jcs package summary page.
none
See Also
plsqlTopic
onsiteTopic