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



Strictly from a performance standpoint, the best performance guru I know 
regularly used large to monstrous data structures as parameters. It never 
seemed to bother him and he is a performance fanatic.  

Ron


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

date: Sun, 28 Dec 2003 12:51:54 -0600 (Central Standard Time)
from: "Booth Martin" <Booth@xxxxxxxxxxxx>
subject: Re: The passing of user selections

A monstrous Data Structure is the easiest and cleanest. Externally define
the data structure with all of the filters&fields you need.

The nicest part of this solution is that you can redefine the data stucture
without having to rewrite your program.

So far as it being resource intensive... I would test that issue before I
said one way or the other, but I've used some pretty large data structures
without noticeble performance implications.



---------------------------------------------------------
Booth Martin http://www.MartinVT.com
Booth@xxxxxxxxxxxx
---------------------------------------------------------

-------Original Message-------

From: RPG programming on the AS400 / iSeries
Date: 12/26/2003 3:15:38 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: The passing of user selections

I trust everyone had a Merry Christmas, a Feliz Navidad, and all that good
stuff. If not, I wish you one (albeit belated...)

I am building an RPGIV program to replace an NGS Query.

The user is allowed to make several selections that involve lists of values
(sites, contract IDs, etc.), and then the report is to be submitted to
batch. The added requirement is that the job might be submitted multiple
times while the batch component is in the job queue from other runs.

I am trying to determine the best way to pass the selections to the batch
submission. Should I use a USER SPACE, or a DATA QUEUE, or a uniquely named
file with the selections (different field sizes, types)?

I have pondered a monstrous, structured parameter string, but I have heard
such things are resource intensive.

How would you do it?
--------------------------------------
Tony Carolla
MedAmerica Billing Services, Inc.



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.