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