Typically, you add the fields to the physical file, not the logical.
Or are you referring to a logical file that has specific fields in
the DDS...if so, then you'll need to recreate the logical file (LF).
You should be using COPY DDS statements so that they will pick up
the new layout automatically when you compile your program.
There could be other scenarios than what I listed :)
You may need to provide more information and maybe some snippets
of what your trying to do.
From: COBOL400-L [mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Charmaine A. Gray
Sent: Wednesday, October 26, 2016 1:10 PM
Subject: [COBOL400-L] PF / LF files
I just started working on an AS400 in April of this year.
I need some help in understanding how to create a new field for a LF (logical File).
I have added the new field to the copybook which holds the file layout.
I have recompiled the program.
I don't know what to do to the actual file to make it larger.
Can you help me?
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l
Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
As an Amazon Associate we earn from qualifying purchases.