Bill Howie
2005-08-02 15:49:10 UTC
Hello all......
I have what I hope is a simple question. I am using CPYTOIMPF to
create a CSV file for an application I am working on. One of the
fields I have in the ISeries file that I am copying is a numeric field
that I convert to alpha with the %EDITC BIF. This field translates to
the CSV file just fine. However, we have a need for an apostrophe to
be right before the number in the cell in the CSV file that this field
occupies. In Excel, this identifies the field as a label. I can do
the CPYTOIMPF without attaching an apostrophe on that field, and then
within the CSV sheet maunally stick an apostrophe in the cell and the
cell becomes identified as a label (with the small green triangle in
the upper left corner). This is what is needed for the application.
So I thought to myself, "add the apostrophe on before you send the file
down". But if I try to put the apostrophe in there on the ISeries side
and then do the CPYTOIMPF, it comes across to the CSV file looking like
this: '3.
Is there a parameter or some sort of workaround that would allow this
field to show up in the CSV file with this cell defined as a label? Or
am I barking up the wrong tree in using the CPYTOIMPF command? Any and
all help would be greatly appreciated. Thanks!
Bill Howie
Programmer/Analyst
Coastal Pet Products, Inc.
I have what I hope is a simple question. I am using CPYTOIMPF to
create a CSV file for an application I am working on. One of the
fields I have in the ISeries file that I am copying is a numeric field
that I convert to alpha with the %EDITC BIF. This field translates to
the CSV file just fine. However, we have a need for an apostrophe to
be right before the number in the cell in the CSV file that this field
occupies. In Excel, this identifies the field as a label. I can do
the CPYTOIMPF without attaching an apostrophe on that field, and then
within the CSV sheet maunally stick an apostrophe in the cell and the
cell becomes identified as a label (with the small green triangle in
the upper left corner). This is what is needed for the application.
So I thought to myself, "add the apostrophe on before you send the file
down". But if I try to put the apostrophe in there on the ISeries side
and then do the CPYTOIMPF, it comes across to the CSV file looking like
this: '3.
Is there a parameter or some sort of workaround that would allow this
field to show up in the CSV file with this cell defined as a label? Or
am I barking up the wrong tree in using the CPYTOIMPF command? Any and
all help would be greatly appreciated. Thanks!
Bill Howie
Programmer/Analyst
Coastal Pet Products, Inc.