CraigJConrad
IS-IT--Management
I am in need of creating a flat file with a "canned" header in it. So, the first SELECT statement I do is a SELECT from DUAL to construct this record. A large number of the bytes are x'00'. After creating this, it appears that these have been changed by something to be all spaces (x'20'). What is causing this, and what must I do differently?
We experience something similar in placing a prefix on each record coming from SELECTS built from real data tables -- x'00' becomes space.
Any help appreciated! ... Craig
Code:
-- Variable-Length Header Record for MF Cobol:
SELECT chr(48), chr(0), chr(0), chr(124), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(62),
chr(0), chr(1), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(1), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(125), chr(0), chr(0), chr(0), chr(0),
chr(1), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0), chr(0),
chr(0), chr(10)
FROM DUAL
;
We experience something similar in placing a prefix on each record coming from SELECTS built from real data tables -- x'00' becomes space.
Any help appreciated! ... Craig