SET TERMOUT OFF
SET ECHO OFF
SET FEEDBACK OFF
SET UNDERLINE OFF

SET PAGESIZE 0
SET LINESIZE 32767
SET TRIMSPOOL ON

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

-- CSV output: ';' as delimiter, no quoting (can be changed to QUOTE ON if needed),
-- and HEADERS explicitly enabled here:
SET MARKUP CSV ON DELIMITER ';' QUOTE OFF HEADING ON

SPOOL __SPOOL_PATH__

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

SPOOL OFF
EXIT