Interesting - from the fact that you responded to Michael it looks like my post for rthe same answer didn't even get through...

Jon P.

On May 19, 2023, at 8:35 AM, Michael Quigley <MichaelQuigley@xxxxxxxxxx> wrote:

Instead of using COPY DDS-...... use COPY DDR. The compiler will replace the # with an 'N' (and $ with D, etc.)

Michael Quigley
Computer Services
The Way international
message: 1
date: Thu, 18 May 2023 15:20:51 +0000
from: Rich Loeber <rich@xxxxxxxxx>
subject: [COBOL400-L] COPY REPLACING Issue

I am trying to work with an older DDS database and a field in the file has a #
character in the field name. The COBOL compiler doesn't like that much. I've
been trying to use the COPY REPLACING option, but every time I set up the
"from" field name, it chokes because of the # character. Anyone have an
example of how to get this to work?

Rich Loeber
Kisco Systems LLC
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

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-2023 by 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.