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



I ve a file DAHDRT00(which doesnt ve keyfield) ,Iam doing opnqry by taking
3fields frm the file as  3keyfields) mentioned in ascending order on this
file in my CL ,from there iam calling RPG ...Can i mention Record address
type "k" on this file in my rpg prog? and do chain or use setll and read
?kindly suggest me ! here the code

 OVRDBF     FILE(DAHDRT00) TOFILE(*LIBL/DAHDRT00) +    
              MBR(*LAST) SHARE(*YES)                   
 OPNQRYF    FILE((*LIBL/DAHDRT00 *LAST)) +             
              KEYFLD((DAHDRFCD *ASCEND) (DAHDRGRF +    
              *ASCEND) (DAHDRHFL *ASCEND))             
 CALL       PGM(*LIBL/DAD0070) PARM(&RTCODE)           
 CLOF       OPNID(DAHDRT00)                            
 DLTOVR     FILE(*ALL)                                 
















Murali

> -----Original Message-----
> From: Richard B Baird [SMTP:rbaird@esourceconsulting.com]
> Sent: Thursday, January 16, 2003 6:20 PM
> To:   RPG programming on the AS400 / iSeries
> Subject:      Re: sequential read
> 
> 
> Murali,
> 
> move the setll (and a primeing read) outside of your do loop - otherwise
> you will read the 1st record only, an infinate number of times - an
> endless
> loop.
> 
> --->
> 
>   $Load_Hdr_Rec Begsr
>   *Start        setll     DAHDRT00
>                 READ      DAHDRT00
> 
>                 DOW       NOT %EOF(DAHDRT00)
> ....process record here......
>                 READ      DAHDRT00
>                 enddo
> 
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.