RE: [U2] [UV] Basic Program Scheduling Priority

2007-01-15 Thread gerry-u2ug
The RQM statement has not appeared in any universe documentation at
least as far back v6.  I actually had to locate some old prime manuals
to find out what this was statement was all about.  I recall reading
some blurb somewhere that although RQM is still supported by the
universe compiler it is in effect a NOP and doesn't actually do anything
on any platform.

Gerry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Wurlod
Sent: January 15, 2007 1:08 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV] Basic Program Scheduling Priority

RQM releases the remainder of a process's timeslice on the CPU.  Not
100% certain it works on Windows platforms.  (Release QuantuM)

PERFORM "CHAP DOWN" will reduce the process's priority.  This works on
all platforms.  (Note: you can not CHAP UP unless you have Administrator
privileges.)  Check out HELP CHAP for more.  (CHAnge Priority)
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Basic Program Scheduling Priority

2007-01-15 Thread Timothy Snyder
> I recall reading
> some blurb somewhere that although RQM is still supported by the
> universe compiler it is in effect a NOP and doesn't actually do anything
> on any platform.

Not true.  On UniData, the documentation for RQM includes the following: "
RQM is a synonym for the SLEEP function. For more information, see SLEEP." 
 If you check TIME() or SYSTEM(12) before and after an RQM statement, 
you'll see that, without any parameters, RQM will generate a SLEEP 1. 
Although not documented as such for UniVerse, this will act the same way.

Years back, I was working on Sequoia Pick O/A and was looking into a 
program that was suddenly taking a long time.  I came across a bunch of 
RQM statements and talked to the programmer who was working on the program 
to see what they were all about.  He said that they forced a screen flush 
so a record counter would be up to date.  I slapped together a small test 
program and demonstrated that this was actually doing a one-second sleep, 
which was happening pretty frequently.  (Well, yes, it did flush the 
screen, too.)  I replaced all of the RQMs in the program with CRT 
CHAR(0):, which forced a screen flush on O/A, and the program sped up 
drastically.

So anyway, this shouldn't be treated as a NOP.  If you come across 
something like this in a program, get rid of it, unless the desired effect 
is actually to sleep for a second.  I can't speak to other platforms, but 
for Pick O/A, UniData, and UniVerse, that's what you'll get.


Tim Snyder
Consulting I/T Specialist
U2 Consulting
North American Lab Services
IBM Software Group
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Basic Program Scheduling Priority

2007-01-15 Thread Perry Taylor
Thanks to everyone for their suggestions.

The CHAP command was exactly what I was looking for (thanks Martin and
Ray).  Many years ago I had used the General Automation R91 BASIC
statement CHAP and actually had looked in the UniVerse BASIC manual for
it.  It never occurred to me to look for a UniVerse command-line
equivalent.  I will give it a try.

BTW.. Does anyone know how to tell if a process has been CHAP'd up or
down?  CHAP does not appear to return anything of value to tell you
about what it has done. ???

Thanks again!

Perry 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug
Sent: Monday, January 15, 2007 8:34 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV] Basic Program Scheduling Priority

The RQM statement has not appeared in any universe documentation at
least as far back v6.  I actually had to locate some old prime manuals
to find out what this was statement was all about.  I recall reading
some blurb somewhere that although RQM is still supported by the
universe compiler it is in effect a NOP and doesn't actually do anything
on any platform.

Gerry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Wurlod
Sent: January 15, 2007 1:08 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV] Basic Program Scheduling Priority

RQM releases the remainder of a process's timeslice on the CPU.  Not
100% certain it works on Windows platforms.  (Release QuantuM)

PERFORM "CHAP DOWN" will reduce the process's priority.  This works on
all platforms.  (Note: you can not CHAP UP unless you have Administrator
privileges.)  Check out HELP CHAP for more.  (CHAnge Priority)
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited. ZirMed, Inc. has strict policies regarding the 
content of e-mail communications, specifically Protected Health Information, 
any communications containing such material will be returned to the originating 
party with such advisement noted. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] In-Line prompting AGAIN

2007-01-15 Thread roy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of roy
Sent: Saturday, December 16, 2006 9:25 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] In-Line prompting

Hi group,

Can anyone explain ???

In an inline prompt this works:

SELECT CUSTOMER <> WITH FLAG

Only with a multi digit customer number
 I.e. CUSTOMER "31"
But not if CUSTOMER "7"
FLAG IS "Y" IN BOTH CASES.

Also works without the WITH FLAG criteria.

UV 10.1.14 Pick format on AIX 5.3




 

Thanks


Roy
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] In-Line prompting AGAIN

2007-01-15 Thread Stevenson, Charles
> SELECT CUSTOMER <> WITH FLAG

There is probably an item called "7", but not one called "31" in either
DICT CUSTOMER or VOC.

Put the quote marks outside the prompt text.
  SELECT CUSTOMER "<>" WITH FLAG
 

The 1st way will prompt (the quote marks literally appear):
   "ENTER CUSTOMER NUMBER "= 
the 2nd:
ENTER CUSTOMER NUMBER =

The 1st will execute:
  SELECT CUSTOMER 7 WITH FLAG
the 2nd:
  SELECT CUSTOMER "7" WITH FLAG
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/