|
Frank, You seem to be picking terms out of the air, here. Activation groups have nothing to do with threading. I believe activation groups bear as much resemblance to MRTs as your as400 appears to resemble a pocket calculator. Sure, you can pick out one or two aspects of ILE that seem to be similar to older technology you've abandoned. But, how long since you were that boy playing with MRTs? 15 years? more? Gee, could IBM have really taken a decent (though hard to implement) idea and made it better? simpler? faster? easier? (Sorry for the rant, I've had this argument too many times with a former boss who was reluctant to look at RPGIV because it reminded him of something he disliked from years ago.) If you truly believe that RPGIV makes programming MORE difficult, then you'd better think about retirement asap, cause you've totally missed the boat. IMO, more than 80% of the benefit of RPGIV is the improved readability and maintainability of the code. Ignore (for the most part) the parts about override scoping. Threads are spawned processes. Think of SBMJOB and you've got the idea of threading, though it does get a bit more devious. Don't worry about it too much, since RPG doesn't support threading (afaik). It's more in the realm of Java and Webshpere that you deal with threads. Ingore the buzzwords and study up on service programs, subprocedures, procedure prototyping, and %Bifs. These are (to me) the best parts of RPGIV. Eric DeLong Sally Beauty Company MIS-Sr. Programmer/Analyst 940-898-7863 or ext. 1863 -----Original Message----- From: FKolmann@netscape.net [mailto:FKolmann@netscape.net] Sent: Monday, July 16, 2001 10:39 PM To: rpg400-l@midrange.com Subject: Activation Groups and Threadsafe I checked the archives on Activation Groups and although some things are explained I still don't understand. I checked the archives on Threadsafe and some questions come to mind. Long, long, ago when I was but a boy I wrote a MRT program on a S38. (MRT = multi requesting terminal). It worked fine but it was a bit of a monster, keeping track of each users state resetting variables etc, etc, etc. I quickly came to a conclusion that SRT and the way the S38 managed jobs was the greatest thing since sliced bread was invented and was thankful that, MRTs I will never have to endure again. Then along came activation groups. What exactly are AGs for. I know I can scope file overrides within AGs, but to what end. A long time ago I wrote programs that used 'shared file opens' to minimise ODPs and PAG sizes and I had to be careful that my file cursor was explicitly positioned for every IO (or sometimes very sneakily I used the position of the cursor as input for the next program, confused the heck out of the contractors) but I came to the conclusion that what I was doing was complexity for my own egos sake and I could do the same job using simple programs that opened ODPs as needed. OK so the machine needed to do a bit more work, but no one noticed the difference and the programs were much simpler. Am I now supposed to go back to the dark ages of the MRT. Is that what activation groups are about. Do you seriously expect me to break my job up into multiple sub-jobs (AGs), when I can simply invoke another job. Do AGs address the issue of having thousands upon thousands of jobs all the same and then allow all these similar jobs to live within only ONE job, that now has thousands upon thousands of AGs. What sort of application needs such a thing. Does anyone have examples where they use AGs in a production environment where they could NOT have done the same job using SRT type programs and the usual AS400 JOB setup. What are threads, I assume it is like the MRT I wrote where I had to keep each users data separate. I understand JAVA uses threads, is that because JAVA does not use the AS400 job structure and so has to reinvent the AS400 wheel. (I am guessing, I am ignorant in JAVA) Where is the simplicity of the AS400 going where I could write a program and have as many users call it as they want and the computer keeps everything in its place, now I am supposed to be able to stick things within AGs (named or otherwise). Now I have to consider whether a command is Threadsafe or not. I notice that DSPFFD is not threadsafe. What does this mean, am I now able to get a file description in one job then somehow change the file (would you ever do this) on the fly and then use DSPFFD in another job the gets back the old file layout. How can a DSPFFD give back corrupt data threadsafe or not if the file layout has not changed. Is ILE and AGs and Threads simply a way of redoing what the AS400 has already done but in a fashion that is compatible with the UNIX / C world. If so then I pray that I retire before all this comes to pass. Frank Kolmann __________________________________________________________________ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/ +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.