|
>From: Jim Langston <jlangston@celsinc.com> >Date: Fri, 22 Mar 2002 13:12:07 -0800 > > ... >That's where my problem comes in. Some of these files have record lengths >of 92, some 112, etc.. I'm 99% sure that if I just specified the longest >record length of 112 and internally described the file it wouldn't not work >the way I wanted to at all. > >The only other thing I can think of is to create 3 or more versions of this >RPGLE program, one with each of the different record lengths I come across, >and in a CL or such look at the record length and call the proper RPGLE >program to read the comments. Jim, if you open a file that is shorter than the F-spec declared length, the system will pad the remaining parts of the buffer with blanks. It even brags about it (see message CPF4011). Barbara Morris
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.