PUT_LINE procedure
Translation reference for UTL_FILE.PUT_LINE.
Description
This procedure writes the text string stored in the buffer parameter to the open file identified by the file handle. (Oracle PL/SQL UTL_FILE.PUT_LINE)
Syntax
UTL_FILE.PUT_LINE(
FILE VARCHAR,
BUFFER VARCHAR,
);Setup data
The
UTL_FILEschema must be created.
Custom UDF
UTL_FILE.PUT_LINE(VARCHAR, VARCHAR)
Parameters
FILE: Active file handler returned from the call to
UTL_FILE.FOPENBUFFER: Text buffer that contains the text to be written to the file**.**
Functionality
This procedure uses the FOPEN_TABLES_LINES table created in the UTL_FILE.FOPEN procedure.
If the OPEN_MODE of the file is write (w) or append (a), it inserts the buffer into FOPEN_TABLES_LINES, but if the OPEN_MODE is read (r), it throws the File_is_read_only exception.
Note:
To use this procedure you must open the file with UTL_FILE.FOPEN
Usage example
Oracle
To run this example, see ORACLE UTL_FILE
Snowflake
Known Issues
1. AUTOFLUSH parameter is not used.
AUTOFLUSH parameter is not used.The Oracle Built-in package UTL_FILE.PUT_LINE procedure has the AUTOFLUSH parameter, but in the Snowscripting procedure it is removed because it is not used.
Related EWIs
SSC-FDM-0015: Data Type Not Recognized.
SSC-FDM-OR0036: Unnecessary built-in packages parameters.
Last updated
