-- CSV-friendly settings
SET TERMOUT OFF
SET FEEDBACK OFF
SET ECHO OFF
SET UNDERLINE OFF

-- No pagination, no extra page headers
SET PAGESIZE 0
SET LINESIZE 32767
SET TRIMSPOOL ON

-- We want a single header row
SET HEADING ON

-- LONG / CLOB support
SET LONG 2000000000
SET LONGCHUNKSIZE 32767

-- CSV output (delimiter ';', values optionally quoted)
SET MARKUP CSV ON DELIMITER ';' QUOTE OFF

SPOOL __SPOOL_PATH__

SELECT * 
FROM INFOR.RELTEXT 
WHERE ROWNUM <= 1000;

SPOOL OFF
EXIT