I am using the cpytoimpf command to create a .csv file. The end user wants it to have comma delimiters and enclose fields with double quotes. I've done all of that many times, the problem is that he wants the numeric fields (quantity and prices) to also be enclosed in double quotes. Problem cpytoimpf does not put quotes around numeric fields. I've recreated the file defined numeric fields as alphanumeric but then I end up with editing and negative sign problems. Any advice?
CPYTOIMPF FROMFILE(QS36F/TPOSD) TOFILE(QS36F/POSSRC) +
MBROPT(*REPLACE) RCDDLM(*EOR) +
DTAFMT(*DLM) STRDLM(*DBLQUOTE) +
RMVBLANK(*TRAILING) FLDDLM(',')
CPYTOIMPF FROMFILE(QS36F/TPOSD) TOFILE(QS36F/POSSRC) +
MBROPT(*REPLACE) RCDDLM(*EOR) +
DTAFMT(*DLM) STRDLM(*DBLQUOTE) +
RMVBLANK(*TRAILING) FLDDLM(',')