×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Copybooks should be avoided for file layouts. Does DDS exist for the file? Did you add the new field to the DDS source code?
For old legacy apps, copybooks were created instead of DDS specs.
But I think that you need DDS to create an LF. Or you can do it with SQL also.
Look at the LF or PF with DSPFD filename.
You will know that an LF was set up properly when the desired key shows up in DSPFD under the "Access Path Description" area and your new key field appears as "Key field ..................CustID" where CustID is your new key field.
If you have DBU that is easier - the new field should be identified as a key field. Press F4 to see K01, K02, K03... etc on each field.
When you compile the pgm, it will automatically bring in the new key field.
-----Original Message-----
From: COBOL400-L [mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Charmaine A. Gray
Sent: Wednesday, October 26, 2016 12:10 PM
To: 'cobol400-l@xxxxxxxxxxxx' <cobol400-l@xxxxxxxxxxxx>
Subject: [Newsletter] [COBOL400-L] PF / LF files
Hello,
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?
Thank you,
Charmaine
As an Amazon Associate we earn from qualifying purchases.
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.