× 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 you have the file defined as Keyed, as shown in your 'F' spec, the block
of records will be in key order.  Otherwise, AFAIK, they will be in RRN
order.

Steve

----- Original Message ----- 
From: "Dan" <dbcerpg@xxxxxxxxx>
To: <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, February 27, 2004 10:38 AM
Subject: BLOCK(*YES) questions


> BLOCK(*YES) questions:
>
>      FCMMASTER  IF   E           K DISK    block(*yes)
>
> Does BLOCK(*YES) bring in a block of records in sequential order from the
> file, or in keyed order?
>
> RRN  Key
>   1   AA
>   2   ZZ
>   3   EG
>   4   BH
>   5   WY
>   6   WZ
>   7   AB
>
> In this scenario, will the block of records be in RRN sequence or in keyed
> sequence?
>
> RPG documentation is not, IMO, not very helpful in indicating how blocking
> occurs.
>
> The archives has a post that appears to support a block "by keyed
records":
>
> http://archive.midrange.com/rpg400-l/200212/msg00433.html
> > 2. Blocking is done is in sequence that the records are being accessed:
> > keyed or arrival.  NBRRCDS is always done in arrival sequence.  That's
why
> > the warning.
>
> I have found several posts that imply that blocking is by physical
sequence.
> But nothing that says this.
>
> Is there an IBM reference to this?
>
> TIA,
> Dan
>
> __________________________________
> Do you Yahoo!?
> Get better spam protection with Yahoo! Mail.
> http://antispam.yahoo.com/tools
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>
>

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.