× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



99.9% of the time, the only time you should use *NOCHK, is if you've
changed the name of a field.

Honestly, even in that case, and SQL "insert into mynewfile (....)
select ... from myoldfile" is a better choice.

Charles

On Wed, Jul 29, 2009 at 1:25 PM, dale janus<dalejanus@xxxxxxxxxxxxxxxxx> wrote:
I did not get any error messages when using *MAP *DROP to add fields,
leaving the original fields alone in their original positions.

Every time I used *NOCHK in the past, I was adding fields on the end so
everything lined up.   Now I know better.

---Dale

rpg400-l-request@xxxxxxxxxxxx wrote:
Send RPG400-L mailing list submissions to
      rpg400-l@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
      http://lists.midrange.com/mailman/listinfo/rpg400-l
or, via email, send a message with subject or body 'help' to
      rpg400-l-request@xxxxxxxxxxxx

You can reach the person managing the list at
      rpg400-l-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of RPG400-L digest..."

------------------------------------------------------------------------

*** NOTE: When replying to this digest message, PLEASE remove all text unrelated to your reply and change the subject line so it is meaningful.
------------------------------------------------------------------------

Today's Topics:

   1. Re:  timestamp data type in DDS (Tom Liotta)


------------------------------------------------------------------------

Subject:
Re: timestamp data type in DDS
From:
Tom Liotta <qsrvbas@xxxxxxxxxxxx>
Date:
Tue, 28 Jul 2009 13:55:29 -0700
To:
rpg400-l@xxxxxxxxxxxx

To:
rpg400-l@xxxxxxxxxxxx


dale janus wrote:
Hmmm, why not use CHGPF?

Because old habits die hard?

Because the first time I tried CHGPF I got a warning message that
scared me that I could lose data?

Does CPYF with (*MAP *DROP) not give a similar message? It should; I
haven't actually looked. I'd expect mostly the same kinds of 'loss of
data' to be possible both ways. Maybe the warning is a _good_ thing, eh?

Of course, CPFY with *NOCHK should be an obvious 'loss leader'. That
should almost require additional programming to force the function to
continue after acknowledging the condition.

Tom Liotta

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.