MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

Re: CpytoIMPF to a CSV File



fixed

On Thu, Feb 13, 2014 at 11:09 AM, Audrey Guardino <aguardino85@xxxxxxxxx>wrote:

Is there a way to run this command and keep the integrity of Char fields
that start with a 0?

Below is the command I am executing, when opening the CSV file the data
formats itself in a weird notation, and also removes the last digit
(happens to be a check digit in this case).

Thanks
Audrey

===> CPYTOIMPF FROMFILE(TESTFILE) TOSTMF('\path\test.csv') MBROPT(*ADD)
STMFCCSID(*STDASCII) STMFAUT(*DFT) RCDDLM(*CRLF) STRDLM
(*NONE) NULLIND(*YES)

The field is a UCC id which is defined in the file as 20 Char and the
value of the field is
00007292380143329052

The csv file presents it as 7.29e+15 with a value of 7292380143329050
essentially cutting off the leading zeros (which I can deal with) and
changing the last digit (which is my check digit that I need).






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact