Try it using = not EQ

Les

-----Original Message-----
From: Ben Gladman [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 10:40
To: [EMAIL PROTECTED]
Subject: Re: [U2] SPACE character ignored


"Leroy Dreyfuss" wrote:

> UniData shows both conditions to be false, as does D3.



not on my version of unidata (6.0):


SUBROUTINE BJGTEST
*
T1 = ('1' EQ '1 ')
CRT 'Test 1: ':T1
*
T2 = (' 1' EQ '1 ')
CRT 'Test 2: ':T2
*
T3 = ('    1 ' EQ '        1       ')
CRT 'Test 3: ':T3
*
C=('1':SPACE(16))
T4 = ('1' EQ C)
CRT 'Test 4: ':T4
*
C=('1':SPACE(17))
T5 = ('1' EQ C)
CRT 'Test 5: ':T5
*
RETURN



output:

:BJGTEST

Test 1: 1
Test 2: 1
Test 3: 1
Test 4: 1
Test 5: 0


!
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


This e-mail and any attachments are confidential and intended solely for the use of 
the addressee only. If you have received this message in error, you must not copy, 
distribute or disclose the contents; please notify the sender immediately and delete 
the message.
This message is attributed to the sender and may not necessarily reflect the view of 
Travis Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication.
E-mail transmissions are not secure and Travis Perkins accepts no responsibility for 
changes made to this message after it was sent. Whilst steps have been taken to ensure 
that this message is virus free, Travis Perkins accepts no liability for infection and 
recommends that you scan this e-mail and any attachments.
Part of Travis Perkins plc. Registered Office: Lodge Way House, Lodge Way, Harlestone 
Road, Northampton, NN5 7UG.
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users

Reply via email to