Re: [U2] CPU Charge Units
When we were doing service bureaus in the 80's the Charge Units was one of many metrics used for billing (in addition pages printed, user count, CPU speed, disk consumed, network traffic, and others. But as technology moved forward the value of Charge Units became increasingly unreliable, depending on platform (Ultimate, ADDs, R91, Zebra, AP, etc), hardware, and release. As I recall the figure became more of a measure of relative activity, and to be used only in conjunction with other corroborating evidence, like similar data from the host OS (later when there was one). In short, I don't think I've looked at Charge Units since about 1995 because it's just not a reliable element on which to make decisions. In addition to asking how one would obtain that data, I think other important questions include: how consistent is it across U2 environments , and thus, how valid is that data? HTH T From: Wjhonson In R83 we had a file called ACC which would store details about user's logged in. One of the details it stored was the CPU Charge Units. Universe has this concept in the SYSTEM(9) CPU Charge Units However in R83, you could query this value for any user, or every user since it was stored in a file. Is there a way, in Universe, to query what the CPU Charge Units are, for some other user ? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Virtualizing a Universe server of 100+ users
Thanks to all who responded. We aren't re-using the same machine but it's still nice to know we would experience a 30-40% drop if we were. Looks like we may have to tune the virtual machine to minimize the performance drop... but I'm not at all sure how to estimate how much it will be. Eric Armstrong Programmer/Analyst Lobel Financial LOBEL FINANCIAL PRIVACY NOTICE: This communication may contain confidential company information that is protected by federal law. Federal regulations prohibit the disclosure (or re-disclosure) of confidential information without the written consent of the person(s) to whom it pertains. Additionally, the views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Variable Interpolation
Good afternoon, Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
If you give a specific example, maybe there's an answer -Original Message- From: jjuser ud2 jju...@gmail.com To: U2 Users List u2-users@listserver.u2ug.org Sent: Thu, Aug 23, 2012 5:14 pm Subject: [U2] Variable Interpolation Good afternoon, Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
A way might be a paragraph and call it from TCL. However, I cannot fathom why you want to do this. PA DISPLAY A,Your Name is a good programmer at U2Logic TEST Your Name=DOUG DOUG is a good programmer at U2Logic Regards, Doug On Thu, Aug 23, 2012 at 5:47 PM, jjuser ud2 jju...@gmail.com wrote: Good afternoon, Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CPU Charge Units
I have discovered a way to determine, from inside Universe, what Windows thinks is the amount of CPU time that each one of all running process has consumed. Now I just need to work out a better way to tie this into the other internal details of the process so it can actually be a useful tool for finding runaway processes from the Universe perspective. -Original Message- From: Wjhonson wjhon...@aol.com To: u2-users u2-users@listserver.u2ug.org Sent: Wed, Aug 22, 2012 6:14 pm Subject: [U2] CPU Charge Units In R83 we had a file called ACC which would store details about user's logged in. One of the details it stored was the CPU Charge Units. Universe has this concept in the SYSTEM(9) CPU Charge Units However in R83, you could query this value for any user, or every user since it was stored in a file. Is there a way, in Universe, to query what the CPU Charge Units are, for some other user ? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
I don't know of any way to do that in UV. I'm assuming you want to dynamically create a callable function without having to save/compile? The only thing I'd suggest is set George Gallen Senior Programmer/Analyst Accounting/Data Division ggal...@wyanokegroup.com ph:856.848.9005 Ext 220 The Wyanoke Group http://www.wyanokegroup.com From: u2-users-boun...@listserver.u2ug.org [u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson [wjhon...@aol.com] Sent: Thursday, August 23, 2012 8:54 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Variable Interpolation If you give a specific example, maybe there's an answer -Original Message- From: jjuser ud2 jju...@gmail.com To: U2 Users List u2-users@listserver.u2ug.org Sent: Thu, Aug 23, 2012 5:14 pm Subject: [U2] Variable Interpolation Good afternoon, Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
Sorry, my laptop got a little too excited, and thought I was finished with my email! Anyway, I'd suggest setting up a tmpfs if your in unix, or create a memory drive in windows, then have a subroutine that writes to that location, compiles and catalogs - then uses the call @ method to call the subroutine. Only problem might be I don't know if you can have a variable number of parameters in the call @ . George Gallen Senior Programmer/Analyst Accounting/Data Division ggal...@wyanokegroup.com ph:856.848.9005 Ext 220 The Wyanoke Group http://www.wyanokegroup.com From: George Gallen Sent: Thursday, August 23, 2012 9:54 PM To: U2 Users List Subject: RE: [U2] Variable Interpolation I don't know of any way to do that in UV. I'm assuming you want to dynamically create a callable function without having to save/compile? The only thing I'd suggest is set George Gallen Senior Programmer/Analyst Accounting/Data Division ggal...@wyanokegroup.com ph:856.848.9005 Ext 220 The Wyanoke Group http://www.wyanokegroup.com From: u2-users-boun...@listserver.u2ug.org [u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson [wjhon...@aol.com] Sent: Thursday, August 23, 2012 8:54 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Variable Interpolation If you give a specific example, maybe there's an answer -Original Message- From: jjuser ud2 jju...@gmail.com To: U2 Users List u2-users@listserver.u2ug.org Sent: Thu, Aug 23, 2012 5:14 pm Subject: [U2] Variable Interpolation Good afternoon, Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
From: jjuser Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? Do you mean something like this? VAL = 0 CALL @SUB FOO(X,Y);Y=X+1;RETURN( 3, VAL ) CRT VAL ; * 4 That would be Awesome! I don't believe any of the MV platforms do that because I've been looking for it for 15 years. It can be simulated in various ways, but you did limit the scope of the challenge. I think you're trying to avoid this?: CODE = \ CRT DATE()+20\ EXECUTE PGEN :CODE CAPTURING OUT * OUT is 16327 In this case the PGEN program reads from TCL, writes, compiles, runs, and that output gets captured. But at least the mechanism for performing that task is abstracted from this client/application code. Cache' allows you to enter code at TCL and then execute it without saving/compiling. That can also be simulated in U2. I don't think I've ever seen anyone else ask for it here - certainly no one willing to pay for it. ;) Out of curiosity, what's your application for this? And please correct the above if I've misunderstood the question. T ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CPU Charge Units
From: Wjhonson I have discovered a way to determine, from inside Universe, what Windows thinks is the amount of CPU time that each one of all running process has consumed. Now I just need to work out a better way to tie this into the other internal details of the process so it can actually be a useful tool for finding runaway processes from the Universe perspective. Oh, is THAT what you're looking for? Why didn't you say so? :) Lookup these commands: (use cmdname /? from commandline) logman wmic typeperf pslist (From SysInternals/Microsoft collection) Googling for those will return a good amount of examples as well. You'll need to be sure that the method you use properly reflects all CPUs being used by a given process. Check the wrong CPU and it will look like a process is idle, perhaps while another one is spinning. Also note that 50% utilization or more often isn't always bad. You Want your software to be using the system when other apps are not. Of course the question would arise - why is that process always doing something when I thought it was idle? High utilization is only bad (*add qualifier here like usually*) when you have a lot of processes competing for resources and one of them is hogging resources at the expense of others. It can be bad when only one process is doing something but it's always at 100% CPU utilization - you need to know the application to determine if that's what it should be doing. Something like SETI@Home should, for Universe maybe not. All that said, while I'm aware of some performance nuances, I'm Completely ignorant of CPU utilization characteristics of the U2 platforms. T ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Variable Interpolation
I wrote one myself. There is some capability with one of the conv commands but it is limited to 255character. Regards David Jordan -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno Sent: Friday, 24 August 2012 1:56 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Variable Interpolation From: jjuser Does UniBasic have a way to do variable interpolation (without writing to a file, compiling it as a program, and calling it)? Do you mean something like this? VAL = 0 CALL @SUB FOO(X,Y);Y=X+1;RETURN( 3, VAL ) CRT VAL ; * 4 That would be Awesome! I don't believe any of the MV platforms do that because I've been looking for it for 15 years. It can be simulated in various ways, but you did limit the scope of the challenge. I think you're trying to avoid this?: CODE = \ CRT DATE()+20\ EXECUTE PGEN :CODE CAPTURING OUT * OUT is 16327 In this case the PGEN program reads from TCL, writes, compiles, runs, and that output gets captured. But at least the mechanism for performing that task is abstracted from this client/application code. Cache' allows you to enter code at TCL and then execute it without saving/compiling. That can also be simulated in U2. I don't think I've ever seen anyone else ask for it here - certainly no one willing to pay for it. ;) Out of curiosity, what's your application for this? And please correct the above if I've misunderstood the question. T ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users