View previous topic :: View next topic |
Author |
Message |
Balanim Beginner
Joined: 29 Jan 2004 Posts: 21 Topics: 8
|
Posted: Mon Jul 31, 2006 8:28 am Post subject: Why in PL/I the check for Blank fails |
|
|
Hi Friends
I am using some code like this in PLI
Code: | PUT SKIP LIST( 'TIME_INPUT_PRINT',TIME_INPUT);
IF TIME_INPUT ^= ' ' THEN
CALL TRANSLATE_TIME;
ELSE; --> Do nothing |
Here TIME_INPUT is delcared as CHAR(2)
The putskip list prints the value of the variable as Blank but still
it calls the Proc TRANSLATE_TIME
this is not the first happening to me.
Can anybody please tell me how it can call even the value of variable is Blank
Thanks & Regards
Nim |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Jul 31, 2006 8:38 am Post subject: |
|
|
Balanim,
Try checking as
[code:1:4e6e8684c1]
IF TIME_INPUT _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Grant Beginner
Joined: 02 Dec 2002 Posts: 45 Topics: 1 Location: Sydney, NSW, Australia
|
Posted: Mon Jul 31, 2006 6:53 pm Post subject: |
|
|
Balanim,
You said the variable prints as blank - did you display the value in hex ? perhaps it has a non-printable value ... |
|
Back to top |
|
 |
|
|