|
This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I don't agree that it would be harder to maintain what was going on. Yes, someone might have to learn something new - is that so terrible? But the api's involved are some of the simplest. And I knew people that couldn't grasp the concept of a chain or a setll, they actually read every record of the file looking for the one they wanted. Would you think it unreasonable for them to learn something new? Neither do I. The API's are well documented. And I often put comments in my code going straight to the web site with the documentation on that API. Granted, the way IBM moves their web sites around can frustrate some of your links. A straight RPG method, using API's would definitely blow the doors off the CL method as far as performance goes. And doing a DSPFD to either print outs or to an outfile are subject to the whims of IBM and may change format with each new version of the OS. Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin Jim Langston <jlangston@celsinc.com> Sent by: rpg400-l-admin@midrange.com 04/24/2002 03:39 PM Please respond to rpg400-l To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> cc: Fax to: Subject: RE: Request for CL, DDS, SQL RPG enhancements Why use 2 files in a CL when you could do that in RPG? Here's an example: I have an application that retrieves the list of files in a library, and then does some quick math to see if I need to reorganize the physical file member. I don't want to do all libraries on my system, but only certain ones. So I put the list of libraries I want to reorganize into a physical file. If I could open up more than one file in a CL it would be a simple CL program. Read from the list of libraries. For each library DSPFD into a file, then read through the file and check for members to be reorganized. As it is right now, I have to have 2 CLs. One to read the list of libraries, one to read the list of members. In no way would I think this better written in RPG. These are fairly simple CL commands, DSPFD, RGZPFM, etc.. that are being called that are very easy, quick, and explicit in CL. In RPG I would have to set up system calls, etc... and it would be much harder to maintain and understand what was actually going on. I'm simply trying to use the appropriate tool for the job, in this case CL. Regards, Jim Langston _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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-2025 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.