× 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.



That's what I ended up doing.

However, when I reprint the report I need to know the actual length. I ended
up using a small RPGLE program which rips through the file and determines
the  longest record. Not fancy but it works.

Albert York                          



        -----Original Message-----
        From:   midrange-l-bounces@xxxxxxxxxxxx
[SMTP:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Jedrzejewicz
        Sent:   Friday, October 08, 2004 9:53 AM
        To:     Midrange Systems Technical Discussion
        Subject:        Re: Determining spool file record length

        How about just making the physical pretty wide (say 2048 bytes)?
The
        likelihood of a report going larger than that is really small, and
        assuming the file is temporary the wasted space is trivial.

        If you don't do that but do get the actual length, remember to add a
        couple of bytes to account for formatting codes.

        On Tue, 5 Oct 2004 09:47:55 -0700, York, Albert
        <albert.york@xxxxxxxxxxxxxx> wrote:
        > I need to determine the record size (characters per line) of a
spool file,
        > so I can create a physical file of the correct length when I use
the CPYSPLF
        > command.
        > 
        > I have tried using WRKSPLFA to a print file but it doesn't always
have the
        > actual number of characters, only the maximum for the print file.
        > 
        > Thanks,
        > 
        > Albert York
        > 
        > --
        > This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
        > To post a message email: MIDRANGE-L@xxxxxxxxxxxx
        > To subscribe, unsubscribe, or change list options,
        > visit: http://lists.midrange.com/mailman/listinfo/midrange-l
        > or email: MIDRANGE-L-request@xxxxxxxxxxxx
        > Before posting, please take a moment to review the archives
        > at http://archive.midrange.com/midrange-l.
        > 
        > 


        -- 
        Tom Jedrzejewicz
        tomjedrz@xxxxxxxxx
        --
        This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
        To post a message email: MIDRANGE-L@xxxxxxxxxxxx
        To subscribe, unsubscribe, or change list options,
        visit: http://lists.midrange.com/mailman/listinfo/midrange-l
        or email: MIDRANGE-L-request@xxxxxxxxxxxx
        Before posting, please take a moment to review the archives
        at http://archive.midrange.com/midrange-l.

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.