Bottom line - file descriptions are not created by COBOL code in OS400. You need a basic understanding of how physical and logical files are created. Just modifying the COBOL file structures will not modify the file structure of a table.
As Joel Stone said, this can be done with SQl or DDS but not with COBOL. The table structures are created outside of the high level languages in OS400 operating system.
Please note my new email address - jarnold@xxxxxxxx
This transmission may include confidential health information that is protected by law. This information is intended for the use of the listed recipients only. If you are not listed as a recipient, you are hereby notified that any disclosure or distribution of this information is strictly prohibited. If you are not the intended recipient of this information, please notify the sender immediately to arrange for the return or destruction of the information.
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?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2021 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.