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



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

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.