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



If I do not define a length will it adopt the length?

-----Original Message-----
From: mi400-admin@midrange.com [mailto:mi400-admin@midrange.com]On
Behalf Of Leif Svalgaard
Sent: Monday, June 17, 2002 6:26 PM
To: mi400@midrange.com
Subject: Re: [MI400] Compressing a savf file


From: Harry Williams <planesmart@teleteam.net>
> I was looking a leif book and I was trying to read a save file and got a
> message that the length was too long. It said save files need to be 528.
I
> was reading chapter 12 on compression.
>
> The statement it had a problem with
>
> CALLX   .SEPT(OPEN-ENTRY), OPEN-I, * ;
>
> I do not see where the length of this file is set at all.
>

at the end of the UFCB you'll find (at times several) parameters.
One is the record size:
DCL DD IFCB-RECORD-ID      BIN(2) DEF(IFCB) POS(209) INIT(1);
DCL DD IFCB-RECORD-LENGTH BIN(2) DEF(IFCB) POS(211) INIT(132);
DCL DD IFCB-NO-MORE-PARMS BIN(2) DEF(IFCB) POS(213) INIT(32767);

Change the "132" above to "528", and remember to change the
INBUF CHAR(132) to CHAR(528) as well.

hth
Leif


_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/mi400
or email: MI400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.