|
Iam using V5R1 Rick!Iam satisfied with the earlier answer to define like 1 occur MODS Regards, Murali > -----Original Message----- > From: Chevalier, Rick [SMTP:Rick.Chevalier@americredit.com] > Sent: Tuesday, January 21, 2003 8:04 PM > To: 'RPG programming on the AS400 / iSeries' > Subject: RE: MODS > > What version of OS/400 are you running? In V5R2 support was added to > allow > access to MODS like arrays using subscripts. This might make it possible > to > reference two difference occurrences of a MODS in the same EVAL statement. > > > -----Original Message----- > From: N, Muralidhar [mailto:Muralidhar.N@blr.hpsglobal.com] > Sent: Monday, January 20, 2003 11:20 AM > To: 'RPG programming on the AS400 / iSeries' > Subject: MODS > > DHDRTBLMODS DS OCCURS(100) > DIhdr_Rec_Typ 1 1A > DIhdr_as_len 2 3 > DIhdr_hosp_cod 4 6 > DIhdr_gr_fil 7 16A > DIhdr_fil_nam 17 26A > DIhdr_cnt 27 35s 0 > DIhdr_int_flg 36 36A > DIhdr_f_spac 37 69A > DIhdr_upd_dat 70 77A > DIhdr_upd_tim 78 83A > > > EVAL Hdr_hosp_cod = Ihdr_hosp_cod(1)...... > > I want to set the value of Hdr_hosp_code with first index of > Ihdr_hosp_code..will the above statement does the help for me? > > > > > > > > > > > -----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. > _______________________________________________ > 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. > _______________________________________________ > 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.