|
What is a "DDS object"? I've heard of physical files, logical files, screen files, printer files and even ICF files. I've heard of tables, views and indexes. I've heard of authorization lists, workstation customization tables and a plethora of other objects. However, what is a "DDS object"? Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Jerry Myrick" <myrickjr@xxxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 08/26/2003 09:36 PM Please respond to RPG programming on the AS400 / iSeries To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> cc: Fax to: Subject: RE: Arrays of Structures as a parameter in V5R1 We use three different methods to get data to our RPG programs. 1. PCML - Usually use this when the data that is needed to be passed isn't very long and contains no arrays for input. 2. DDS - We create DDS object, use Java to create a Java object of the DDS. You can then use it has an array in Java. We then create a string to pass it to the RPG program. - Usually use this when need to pass array information but is fixed. 3. File - Write to a work file the data that is needed and call the RPG program to process. Use stored procedure to read the work file to get the status of each record (If needed). In Java you can use SQL or the record-level access to write groups of records with one write. Usually use this when need to have large amounts of data, but the size is unknown. All of these perform well. The PCML is faster than the DDS, but only on the initial start up. After the DDS Java object has been created, I feel it performs about the same. I could have created the DDS Java source so it wouldn't be created on the fly, so the initial overhead wouldn't be there, but I liked not having to worry about creating the source every time the DDS changed. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave Murvin Sent: Tuesday, August 26, 2003 7:36 PM To: RPG programming on the AS400 / iSeries Subject: RE: Arrays of Structures as a parameter in V5R1 At 06:34 AM 8/26/2003, you wrote: >Just a suggestion here, but is it possible to pass the information via XML? >Maybe even make the RPG program a web service that can consume a simple XML >request and output XML? It would be simple for Java to process the web >service and parse the result XML. This would also make it a loosely coupled >connection which would allow other process to use the RPG web service >instead of just Java, _and_ you could have the same thing on a different >back end written in something other than RPG if they need ever arose I had not thought of using XMT. We are dealing with a third party that already has most of the web applications created, we just need to specify and code all the interfaces in the next couple of months. They indicated that they have experience calling an RPGLE program from their end, so that is what we thought of. We also have the problem that our internal skill set (one full time, one part time programmer) does not include XML or parsing XML from RPG. Given our time constraints, I don't believe that we would have much time to develop the skills. Do you know of any quick examples or tutorials on using XML with RPG? If we have some good samples to clone, it might be an option. In the mean time, I will probably start with Duane's option 2 suggestion to use structures of arrays. Thanks for the suggestions. Dave Murvin DRM Enterprises, Inc. _______________________________________________ This is the RPG programming on the AS400 / iSeries (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 AS400 / iSeries (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 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.