midrange-l-request@xxxxxxxxxxxx wrote:

>   8. truncate source PF (Elvis Budimlic)
>
>We have one source PF with record length of 240 bytes.  Is there an easy way
>to change the record length to something like 122 without losing data?


Elvis:

What kind of "source" do you have in the file?

Just because the file attribute is PF-SRC doesn't mean it must contain "source" 
for a compile, so what type of data is in there? Are you storing some kind of 
text and you want to shorten it and preserve word-wrap?

Or is it actual source that might have formatting problems if the records are 
split?

One general possibility that comes to mind is a QM query and form that does 
column splitting at word breaks (white-space). I've never done it to an 
outfile; but even if it's to a spooled file, it can be transformed back to a 
physical file.

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.