>However, when you use DEFFUN what you are actually doing
>is creating a variable name. This must conform to the rules
>for naming variables, one of which is that it must begin with
Excellent replies. Thanks to those who replied! I've got it working now.
I've only been using UV for about 7 years
Functions in UV are implemented as subroutines. That is, the following are
equivalent.
FUNCTION MyName(Arg1,Arg2)
* my code here
RETURN(Result)
SUBROUTINE MyName(Result,Arg1,Arg2)
* my code here
RETURN
When you use CALL, you use the actual catalog name (whether it's in VOC or
GLOBAL.CATDIR).
I believe the only "must have" is a $ prefix when cataloging subroutines to be
invoked from ICONV/OCONV.
Otherwise there don't seem to be any restrictions, which was a huge surprise
when I moved from Prime.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://list
Do you need to use the ! In the DEFFUN (and when you refer to the
function) if it's globally catalogued?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 4:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help
try using :
deffun MYFUNC(A) calling "!MYFUNC"
R = MYFUNC('HELLO WORLD')
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 06:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help with function() please
OK, I
try using :
deffun MYFUNC(A) calling "!MYFUNC"
R = MYFUNC('HELLO WORLD')
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 06:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help with function() please
OK, I
George Gallen wrote:
Looking for ideas here. (comparing item sales figures to corp total
sales)
The best example of what I'm looking to do is like the stock market.
I have a list of numbers which go up and down from day to day
liken it to the index (NYSE, NASDAQ...) [corp sales]
and I have a l
Jerry,
I would suggest if the date was the 1st of the month the first locate
statement would not find the value as this performs a string comparison as
it assumes AL ascending left justified. ie 1 and 01 are not equivalent
stings
However, the second locate statement would find the value as AR asc
Jerry,
I don't have UV, but I suspect that yesterday you got:
FOUND
NOT FOUND
Of course, today it would be:
NOT FOUND
NOT FOUND
Because it is now the 2nd here in Australia.
Anyhow, LOCATE DAY IN ... isolates DAY ('01') and will probably end up
deciding that it is a number of value 1 before re
OK, I hate to be the asker of 2 questions in the same day, but...
If I create a file named MYFUNC and it looks like this:
FUNCTION MYFUNC(A)
PRINT 'A = ':A
RETURN('return value')
...and I put it in the same file (directory) as the other programs, I can
write another program and do:
DEFFUN MYFUN
And the point of this exercise is... What exactly?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry Banker
Sent: Wednesday, December 01, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: [U2] UV quiz
Try this one
A = '1'
DAY = OCONV(DATE(),
Try this one
A = '1'
DAY = OCONV(DATE(),'DD')
CRT A:' ':DAY
LOCATE DAY IN A<1> SETTING MV THEN
CRT 'FOUND'
END ELSE
CRT 'DID NOT FIND'
END
LOCATE(DAY,A,1;MV;'AR') THEN
CRT 'FOUND'
END ELSE
CRT 'NOT FO
Thanks for the replies!! That was all really useful. This is a great mailing
list.
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
Hi Lance,
It's a good few years since we communicated.
> Were the -subroutines also used by the multi valued subroutines intended
> for itypes?
That's true. I had forgotten those. Of course, these are now available as
functions. Within the UniVerse world, the -subroutines seem to be used
mostl
Looking for ideas here. (comparing item sales figures to corp total
sales)
The best example of what I'm looking to do is like the stock market.
I have a list of numbers which go up and down from day to day
liken it to the index (NYSE, NASDAQ...) [corp sales]
and I have a list of numbers for
Were the -subroutines also used by the multi valued subroutines intended
for itypes?
Martin Phillips wrote:
>>When globally cataloging, the catalog name begins with a *, -, $ or !
>>according to my documentation.
>>
>>
>
>There are conventional uses for these characters but you can break th
> When globally cataloging, the catalog name begins with a *, -, $ or !
> according to my documentation.
There are conventional uses for these characters but you can break the
rules
*User written subroutines (Though UV provides loads of its own)
$Pick user exits and GCI interfaces
!
The '*' is relic for INFORMATION compatiblity; when you CATALOGed within
INFORMATION, the '*' was used to indicate a global program.
The '!' is also a relic from INFORMATION, as the Prime-supplied Subroutines
all began with it (!EXIST, !AMLC, etc) and this was supported within
universe so that
When globally cataloging, the catalog name begins with a *, -, $ or !
according to my documentation.
Before I create a slew of gaffes, is there any significance to WHICH of
those 4 characters a user-created function or subroutine should use?
I imagine there are 4 different characters for a reason
Craig,
There are some reasonably important users of U2 databases in Australasia
* Your mates (or competitors?) at Ultradata have a major chunk of
the financial services market as I understand it. They have two
banks on this side of the ditch, one of them being KiwiBank, th
I will be out of the office starting 12/01/2004 and will not return until
12/02/2004.
I will respond to your message when I return.
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addres
Check UNIX permissions, ulimit, etc.
If all else fails, delete the item/record in the file, (UNIX Directory) via
UnixWare, as a short term solution.
Then create another "directory" with another name.
Unix level copy items in "bad" directory to new, good directory you just
created.
RMDIR bad direct
At 03:30 PM 11/30/2004, you wrote:
The &COMO&, &SAVEDLISTS& and &HOLD& files are simple type 19 (directory)
files. Can they get corrupted and what tool should I use to check for this?
It's not possible for these to get corrupted in the usual sense as Hashed
Files. There is not a universe utility
Thanks all for the good leads. We also found thet PTERM ERASE seems to
work well in this situation; it had been used here in some of the login
scripts but not others, presumably as an artifact of switching
programming teams some years back.
Many thanks for the assists!
>"stty erase '^?'" in the
We evaluated several off the shelf packages before writing our own. The main
issues were that no single package had all the mandatory features that our
users and regulators required.
With 30 years worth of documents plus emails, PDFs, faxes etc etc most vendors
ran for the hills when asked to
Mark:
Check with Tony Gravagno. His email address is:
[EMAIL PROTECTED] Don't forget to remove the "remove this". I
know he can help.
Bill
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Mark Johnson
> Sent: Wednesday, December 01, 2004 12:26 AM
>
Hi,
We scan about 5000 documents a day. These are then feed into an optical system
for storage.
We have written apps that use these images.
We would never think about trying to write a scanning app. There are so many
good ones on the market, why try to reinvent the wheel?
A good pakage should
We do something similar in wIntegrate with an ActiveX control (which we
wrote in VB6 using ImagXpress controls).
Not sure if that's possible in Accuterm but I would expect it would be.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson
Sent: 01
I have a client using Accuterm with telnet sessions for all the users. One
user has a Bell & Howell multi-page scanner that gets around 100 pages per day
of work orders etc.
That user's emulator is Ve-Client from Visual Pick and they want to re-write
the app with Accuterm and some VB scripting if
29 matches
Mail list logo