Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with CPYFRMIMPF enhancement

156 views
Skip to first unread message

David Wilson

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
The enhancements to CPYTOIMPF/CPYFRMIMPF enabled by installing PTF's SF61859
& SF61937 are great. I have one problem, however, and hopefully it is just
pilot error.

Given the following comma-delimited file: names.csv (consisting of first
name, last name, age), with age missing on record #2:

John,Doe,40
Jane,Doe,
Tom,Doe,25

And given the target AS/400 physical file:

A R FAMREC
A FIRSTNAME 10A
A LASTNAME 20A
A AGE 3S 0

On CPYFRMIMPF when I use the new RPLNULLVAL parameter with a value of
*FLDDFT, the result of the copy is 3 records with all fields initialized to
default values. What I expected to see was all the fields from the
comma-delimited file mapped to the corresponding database file fields, with
the exception of the 2nd record - which should contain a 0 in the AGE field
(the default value)

Can anybody tell me what I am doing wrong?

Thanks,

David


robi...@my-deja.com

unread,
Jun 9, 2000, 3:00:00 AM6/9/00
to
I am having the same problem. It seems as if it
is working backwards. I expected to see the same
results you did. I have worked around it by
changing the DDS to have ALWNULL for the field
which is not a good solution but it works if you
know the fields that could possibly be blank.

In article <391c2949$0$70...@wodc7nh7.news.uu.net>,
"David Wilson"
<Remove_This....@StrategicFulfillment.com

Sent via Deja.com http://www.deja.com/
Before you buy.

Mark B

unread,
Jun 12, 2000, 3:00:00 AM6/12/00
to
Robin,

>> On CPYFRMIMPF when I use the new RPLNULLVAL parameter with a
value of *FLDDFT, the result of the copy is 3 records with all fields
initialized to default values. <<

...I agree with you. What a nonsense. Surely the Keyword is
malfunctioning and a corrective PTF needs to be issued?

IMO this is a long standing problem... the AS400's inability to
deal with one of the most trivial file formats in existance. The
humble CSV. At last the CPYFRMIMPF command nicely handles most of the
CSV conventions... what a shame about the nulls.

And do you see how it leaves all those trailing blanks under
CPYTOIMPF? "You ","have ","to ","laugh " :)

Mark

Kent Milligan

unread,
Jun 15, 2000, 3:00:00 AM6/15/00
to

This was recently fixed. The PTF that enabled this enhancement is now
superceded.


--
Kent Milligan, DB2 & BI team
PartnerWorld for Developers, AS/400
km...@us.removethis.ibm.com GO HAWKEYES!!
(opinions stated are not necessarily those of my employer)

Bruce Peifer

unread,
Jun 15, 2000, 3:00:00 AM6/15/00
to

Kent Milligan <km...@us.ibm.com> wrote in message
news:3948FAEF...@us.ibm.com...

>
> This was recently fixed. The PTF that enabled this enhancement is now
> superceded.
>

SF62686 for V4R4

Mark B

unread,
Jun 16, 2000, 3:00:00 AM6/16/00
to
Bruce,

>> This was recently fixed. The PTF that enabled this enhancement
is now superceded.

SF62686 for V4R4 <<

...just the job, thanks.

Mark

Mark B

unread,
Jun 16, 2000, 3:00:00 AM6/16/00
to
Kent,

>> This was recently fixed. The PTF that enabled this enhancement
is now superceded. <<

Excellent... now what are the chances of a PTF to fix up CPYTOIMPF?
Lose those trailing blanks when creating a *DLM file, and something to
control the authority on the created file (currently, *PUBLIC EXCLUDE
is your only choice).

These two commands (CPYFRMIMPF, and CPYTOIMPF) are incredibly
useful. It may not be Bleeding Edge but in the real world this is how
we transfer data all the time. :)

Mark

Simon Brunning

unread,
Jun 16, 2000, 3:00:00 AM6/16/00
to
David Wilson wrote in message
<391c2949$0$70...@wodc7nh7.news.uu.net>...

>The enhancements to CPYTOIMPF/CPYFRMIMPF enabled by installing
PTF's SF61859
>& SF61937 are great.

Is this enhancement available at V4R3?

Cheers,
Simon Brunning
TriSystems Ltd.
sbru...@trisystems.co.uk
The opinions expressed are mine, and are not necessarily those of my
employer. All comments provided "as is" with no warranties of any
kind whatsoever.

Simon Brunning

unread,
Jun 16, 2000, 3:00:00 AM6/16/00
to

Kent Milligan

unread,
Jun 19, 2000, 3:00:00 AM6/19/00
to
No, V4R4 PTFs only

--
Kent Milligan, DB2 & BI team
PartnerWorld for Developers, AS/400
km...@us.removethis.ibm.com GO HAWKEYES!!

(opinions stated are not necessarily those of my employer)

0 new messages