• Subject: Re: text files
  • From: "Peter Dow" <pcdow@xxxxxxxxx>
  • Date: Wed, 17 Nov 1999 22:00:28 -0800

Hi Connie,

It looks like you might be using RPG/400 (aka RPG III) instead of ILE RPG
(aka RPG IV). In both RPG's, the SUBST command uses a fieldname, not the
filename, although I realize that in the case of a flat file created without
DDS these are the same.

So if you are using RPG/400, the maximum length of a fieldname is 6
characters, and if your file name is longer than 6 characters, that's the
problem. To keep using your current technique, either use a shorter
filename, or use an input spec to rename the field:

     I              EXTFLD                          INTFLD

where EXTFLD is the external field name and INTFLD is the internal field


Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax

<previous thread>
Our customer downloads a monthly order on a NT work station to us, I then
FTP it to the AS/400. Once is it on the AS/400 as a flat file, I am
attemping to use the file by using substring command to put some of the data
into a sorted file. Once I use the substring and move the data into the
physical file, it should be there, but.....I m getting the message that the
field or indicater is not defined.

5            SUBST<FILENAME>:165CONQTY    5

              MOVE CONQTY    CTYQTY

The code looks similiar to that...can anyone help?
Thanks in advance
<end previous thread>

Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

| 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

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].