• Subject: RE: changing field descriptions
  • From: "Shaw, David" <dshaw@xxxxxxxxxxx>
  • Date: Fri, 4 Feb 2000 10:44:00 -0500

Jim,

I believe that internally CHGPF does the equivalent of a CPYF FMTOPT(*MAP
*DROP).  It doesn't have any provision for cases like yours which need
FMTOPT(*NOCHK).

Dave Shaw

-----Original Message-----
From: Jim Langston [mailto:jlangston@conexfreight.com]

I had tried that exact thing not but a day ago, with failure.  I'm on
V3R7M0 and wanted to add DDS to a "flat" S/36 file that had
been overlooked.

So I created the DDS in a test library, copied a few of the records
into it with FMTOPT(*NOCHK) and tested the integrity of my DDS
file, which was fine.  Then I copied the DDS source into the production
library, and did a ALCOBJ *EXCL on the file I wanted to change.

Then I issued the CHGPF, prompted it, and gave it the source code
file and member, and hit enter.  And received an error.  Unfortunately,
I don't remember what the error was, but I seem to recall it had something
to do with not being able to map from a string field to a numeric field.

So I then copied from my production file to my test file with *NOCHK,
did a DLTF on my production file, and did a CPYF from my test
file to my production file.
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.