|
from: smith5646midrange@xxxxxxxxx
subject: RE: [EXTERNAL] Re: CPYF: blanks -> Null
Justin - I'm assuming you have figured out by now the "easy answer" is
No. CPYF can't do it automagically via a parm or something.
I am assuming you are copying a file with a single field (aka flat file)
to a file with fields defined and using CPYF *NOCHK.
Maybe someone else can jump in here with an answer to this but would a
before trigger on the to file be an option so it replaces the blank with
null before the write? I'm not confident if a trigger will work that way.
It's been too long since I messed with them. If the trigger will work,
that you keep you from substringing your fields to build a fake record out
of your flat data just so you can do an SQL insert.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.