×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Likerec always generate QUALIFIED ds. Define another ds based on the subfile
record and use eval-cor.

HTH
MarcoF

2010/9/27 Florin Todor - YYZ Concord <ftodor@xxxxxxxxxxxxxxxx>

Hi Alen,

The program I am trying to do this is about ten years old and it has
around 10,000 lines of code; but the relevant code I am trying to
implement is:

*Define the MODS:

D ds_det ds occurs(50) likerec(R010D02)

*Populate the MODS:

For s1rrn = 1 to $hilin;
%occur(ds_det) = s1rrn;
Chain s1rrn R010D02 ds_det;
Endfor;

* Clearing the subfile:

*in30 = *off;
*in31 = *off;
*in34 = *on;
Write R010D03;
*in34 = *off;

* TRYING to re-populate the subfile:

v_dsinmax = $hilin;
s1rrn = 0;
For v_dsin = 1 to v_dsinmax;
s1rrn += 1;
%occur(ds_det) = v_dsin;
*in69 = *on;
Write R010D02; <<<<<-----Here I was hoping the subfile gets populated
*in69 = *off;

-----------------------------

Thank you


Florin Todor

Programmer/Analyst
Concord Transportation
www.concordtransportation.com
416-679-7439



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Monday, September 27, 2010 11:44 AM
To: RPG programming on the IBM i / System i
Subject: Re: MODS Likerec

Hi Florin
It would be advisable to post some code for us to look at

Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
--
This is the RPG programming on the IBM i / System i (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.

--
This is the RPG programming on the IBM i / System i (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-2026 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.