|
Can i do *start setll file_name on this file? Kindly advise me Regards, Murlai > -----Original Message----- > From: Richard B Baird [SMTP:rbaird@esourceconsulting.com] > Sent: Tuesday, January 21, 2003 6:22 PM > To: RPG programming on the AS400 / iSeries > Subject: Re: keyfield > > > Murali, > > you can specify 'k' on the F spec, but you cannot chain or setll on it, > because the program has to match your keylist fields with the key fields > of > the file, and it doesn't know those keys at compile time. > > You can however read it by making it a primary file, or by just doing a > 'read' in your calcs, and it will read the file in the order you specified > in your opnqry. > > if you have to chain or setll, you could build a temporary (or even > permanent, for that matter) logical file with the same key fields as your > opnqry, specify that as your full procedural file, and override that name > to your opnqryf at runtime. > > hth, > > rick > > > -----original message------ > 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) > > > _______________________________________________ > 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 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.