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



It rather depends on what you what you mean by "process".

If you just want data from two records simultaneously then reading into a DS (pretty much the same as COBOL's READ ... INTO) would do the job. Use qualified structures and you don't even have to mess with renames.

If you mean you need to _lock_ two different records for update then you either need two files _or_ use commitment control on a single file. I would use CC personally if it is that important to make sure that the two records are updated "simultaneously" - having two separate files etc. won't guarantee that the changes are always in sync.

RPG is no different from COBOL in this regard so I'm not sure what in your COBOL background makes you think that this is something RPG can't handle.


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On 17-Nov-09, at 2:56 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

I want to process 2 separate records by using the same key, or do I have to
create a new logical with the same key as the file that already exists?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.