Re: The result of VARIABLE[1,3] + 0

2004-02-08 Thread Timothy Snyder




 I don't understand. What is this numeric variable. I got the reply '42'.

To understand that response, you'll have to read The Hitchhiker's Guide To
The Galaxy.  Any attempt to explain it outside of that context would be
futile.

Tim Snyder
IBM Data Management Solutions
Consulting I/T Specialist , U2 Professional Services

[EMAIL PROTECTED]
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: The result of VARIABLE[1,3] + 0

2004-02-06 Thread FFT2001
In a message dated 2/2/2004 9:06:43 AM Eastern Standard Time, [EMAIL PROTECTED] writes:

 It's been affirmed here and other places that MV considers everything as a text 
 variable (keep file handles and arrays out of this discussion) and its numerological 
 properties come 
 into play only when we expect it to behave as a number.

No that's not so.  There is a numeric variable (internally stored), in MV.  It is not 
a string and only translated to a number when needed, rather it's a number.
Will
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: The result of VARIABLE[1,3] + 0

2004-02-06 Thread Mark Johnson
I'm all ears. What is this numeric variable.

Thanks.
- Original Message -
From: [EMAIL PROTECTED]
To: U2 Users Discussion List [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 2:34 PM
Subject: Re: The result of VARIABLE[1,3] + 0


 In a message dated 2/2/2004 9:06:43 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:

  It's been affirmed here and other places that MV considers everything as
a text variable (keep file handles and arrays out of this discussion) and
its numerological properties come
  into play only when we expect it to behave as a number.

 No that's not so.  There is a numeric variable (internally stored), in MV.
It is not a string and only translated to a number when needed, rather it's
a number.
 Will
 --
 u2-users mailing list
 [EMAIL PROTECTED]
 http://www.oliver.com/mailman/listinfo/u2-users

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: The result of VARIABLE[1,3] + 0

2004-02-06 Thread FFT2001
There is a numeric type or datum as some people call it.
Since we are talking MV here and not specifically one vendor.

If you look at the opcode of an ADDS machine there is a code for LOADS (string) and 
also a seperate one for LOADN (numeric).  This implies that there are in fact two 
seperate types of variables.  If you inquire into the frame where the variable map is 
being stored as it's running (workspace not object code) you will see that yes a 
string variable starts with a 09 and a numeric I forgot I think its a 01 or 02 ...
   At any rate, its not stored as a string while running, but rather I believe its 
probably stored based on whatever the last action was on it.  A numeric action returns 
a numeric value and is stored as a numeric.  A string action like concatenation would 
probably switch it to be stored, at that moment, at any rate, as a string.  I didn't 
test *this* behaviour explicitly, so I'm not quite sure.
Will


In a message dated 2/6/2004 3:29:01 PM Eastern Standard Time, [EMAIL PROTECTED] writes:

   It's been affirmed here and other places that MV considers everything as
 a text variable (keep file handles and arrays out of this 
 discussion) and
 its numerological properties come
   into play only when we expect it to behave as a number.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: The result of VARIABLE[1,3] + 0

2004-02-06 Thread Mark Johnson
I don't understand. What is this numeric variable. I got the reply '42'.

thanks.

- Original Message -
From: gerry simpson [EMAIL PROTECTED]
To: U2 Users Discussion List [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 4:01 PM
Subject: Re: The result of VARIABLE[1,3] + 0


 42


 - Original Message -
 From: Mark Johnson [EMAIL PROTECTED]
 To: U2 Users Discussion List [EMAIL PROTECTED]
 Sent: Friday, February 06, 2004 3:29 PM
 Subject: Re: The result of VARIABLE[1,3] + 0


  I'm all ears. What is this numeric variable.
 
  Thanks.
  - Original Message -
  From: [EMAIL PROTECTED]
  To: U2 Users Discussion List [EMAIL PROTECTED]
  Sent: Friday, February 06, 2004 2:34 PM
  Subject: Re: The result of VARIABLE[1,3] + 0
 
 
   In a message dated 2/2/2004 9:06:43 AM Eastern Standard Time,
  [EMAIL PROTECTED] writes:
  
It's been affirmed here and other places that MV considers
everything
 as
  a text variable (keep file handles and arrays out of this discussion)
and
  its numerological properties come
into play only when we expect it to behave as a number.
  
   No that's not so.  There is a numeric variable (internally stored), in
 MV.
  It is not a string and only translated to a number when needed, rather
 it's
  a number.
   Will
   --
   u2-users mailing list
   [EMAIL PROTECTED]
   http://www.oliver.com/mailman/listinfo/u2-users
 
  --
  u2-users mailing list
  [EMAIL PROTECTED]
  http://www.oliver.com/mailman/listinfo/u2-users

 --
 u2-users mailing list
 [EMAIL PROTECTED]
 http://www.oliver.com/mailman/listinfo/u2-users

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: The result of VARIABLE[1,3] + 0

2004-02-02 Thread Brian Leach



Marco,

Sounds like a bug inwhatever pointrelease you 
are running. 

What happens if you say B = A[1,3] * 1 
?

I would be very worried about a runtime errorfrom 
'123' + '456'. Not good.


Brian Leach



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Marco 
ManyevereSent: 02 February 2004 04:14To: 
[EMAIL PROTECTED]Subject: The result of VARIABLE[1,3] + 
0

Hi All,

What is the correct interpratation of 

A = '001'
B = A[1,3] + 0
PRINT B

On UV 9.6 I get 0010 contrary to my expectation of 1. What is the logical 
explanation of this. Does UV use '+' for string concatenation as well? Then why 
doesnt '123' + '456' result in '123456' (I get a runtime error)?

Regards,
Marco


BT 
Yahoo! Broadband - Free modem offer, sign up 
online today and save £80 


This email was checked on leaving Microgen for viruses, similar
malicious code and inappropriate content by MessageLabs SkyScan.

DISCLAIMER

This email and any attachments are confidential and may also be
privileged.

If you are not the named recipient, please notify the sender
immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information.

In the event of any technical difficulty with this email, please
contact the sender or [EMAIL PROTECTED]

Microgen Information Management Solutions

http://www.microgen.co.uk

___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: The result of VARIABLE[1,3] + 0

2004-02-02 Thread Mark Johnson



I tried this on a MCD spirit, D3 W2kand 
AP-Pro as well and got the '1' and 567 that we're all getting.

It's been affirmed here and other places that MV 
considers everything as a text variable (keep file handles and arrays out of 
this discussion) and its numerological properties come into play only when we 
expect it to behave as a number. Thus 

X="ABCDEF123IKIJIJ" ; 
Y="456ABCDEFG"
PRINT (X[7,3])+(Y[5,3]) 

would produce the 579 as well.

This brings up another aspect of the text/string 
situation: Consider this

A="00"[1,3] ;*zeros for both 
lines
B="00"[1,2]

PRINT (A=B)

and you would expect to get false as textually 
speaking 000 is not 00. But left alone, these 2 variables can be concluded to be 
numbers and thus equal even though their lengths are different.

my 1 cent.


  - Original Message - 
  From: 
  Marco 
  Manyevere 
  To: [EMAIL PROTECTED] 
  Sent: Sunday, February 01, 2004 11:13 
  PM
  Subject: The result of VARIABLE[1,3] + 
  0
  
  Hi All,
  
  What is the correct interpratation of 
  
  A = '001'
  B = A[1,3] + 0
  PRINT B
  
  On UV 9.6 I get 0010 contrary to my expectation of 1. What is the logical 
  explanation of this. Does UV use '+' for string concatenation as well? Then 
  why doesnt '123' + '456' result in '123456' (I get a runtime error)?
  
  Regards,
  Marco
  
  
  BT 
  Yahoo! Broadband - Free modem offer, sign up 
  online today and save £80
  
  

  ___u2-users mailing 
  list[EMAIL PROTECTED]http://www.oliver.com/mailman/listinfo/u2-users
___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: The result of VARIABLE[1,3] + 0

2004-02-02 Thread Stuart Boydell



-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of 
Mark Johnson...

  This brings up another aspect of the text/string 
  situation: Consider this
  
  A="00"[1,3] ;*zeros for both 
  lines
  B="00"[1,2]
  
  PRINT (A=B)
  
  and you would expect to get false as textually 
  speaking 000 is not 00. But left alone, these 2 variables can be concluded to 
  be numbers and thus equal even though their lengths are 
different.

In 
this case, you would probably want to usethestring compare 
function.
PRINT 
COMPARE(A,B)

**
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 9269 7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**


___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


The result of VARIABLE[1,3] + 0

2004-02-01 Thread Marco Manyevere
Hi All,

What is the correct interpratation of 

A = '001'
B = A[1,3] + 0
PRINT B

On UV 9.6 I get 0010 contrary to my expectation of 1. What is the logical explanation of this. Does UV use '+' for string concatenation as well? Then why doesnt '123' + '456' result in '123456' (I get a runtime error)?

Regards,
MarcoBT 
Yahoo! Broadband - Free modem offer, sign up online today and save £80___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: The result of VARIABLE[1,3] + 0

2004-02-01 Thread Logan, David (SST - Adelaide)
Title: Message



Hi 
Marco,

Universe doesn't use the + for concatenation, it uses the : (colon) 
symbol eg. '123':'456' will result in '123456'. 

Both 
these examples come up with the expected results (1 and 579) on version 10.0.2 
(UV personal edition, Linux) and also on 10.0.8 on 
Tru64.

Regards

David Logan Database Administrator 
HP Managed Services 
139 Frome Street, 
Adelaide 5000 
Australia 
+61 8 8408 4273 
+61 417 268 665 

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
  Of Marco ManyevereSent: Monday, 2 February 2004 2:44 
  PMTo: [EMAIL PROTECTED]Subject: The result of 
  VARIABLE[1,3] + 0
  Hi All,
  
  What is the correct interpratation of 
  
  A = '001'
  B = A[1,3] + 0
  PRINT B
  
  On UV 9.6 I get 0010 contrary to my expectation of 1. What is the logical 
  explanation of this. Does UV use '+' for string concatenation as well? Then 
  why doesnt '123' + '456' result in '123456' (I get a runtime error)?
  
  Regards,
  Marco
  
  
  BT 
  Yahoo! Broadband - Free modem offer, sign up 
  online today and save £80
___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: The result of VARIABLE[1,3] + 0

2004-02-01 Thread John Laughlin



are 
you looking for a number.. because there may be something else. check for 
num... then remove the third place ie
if 
num[1,3] then print else error


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Marco 
  ManyevereSent: Sunday, February 01, 2004 8:14 PMTo: 
  [EMAIL PROTECTED]Subject: The result of VARIABLE[1,3] + 
  0
  Hi All,
  
  What is the correct interpratation of 
  
  A = '001'
  B = A[1,3] + 0
  PRINT B
  
  On UV 9.6 I get 0010 contrary to my expectation of 1. What is the logical 
  explanation of this. Does UV use '+' for string concatenation as well? Then 
  why doesnt '123' + '456' result in '123456' (I get a runtime error)?
  
  Regards,
  Marco
  
  
  BT 
  Yahoo! Broadband - Free modem offer, sign up 
  online today and save £80
___
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users