MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why in PL/I the check for Blank fails

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Balanim
Beginner


Joined: 29 Jan 2004
Posts: 21
Topics: 8

PostPosted: Mon Jul 31, 2006 8:28 am    Post subject: Why in PL/I the check for Blank fails Reply with quote

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
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Mon Jul 31, 2006 8:38 am    Post subject: Reply with quote

Balanim,

Try checking as

[code:1:4e6e8684c1]
IF TIME_INPUT
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Grant
Beginner


Joined: 02 Dec 2002
Posts: 45
Topics: 1
Location: Sydney, NSW, Australia

PostPosted: Mon Jul 31, 2006 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group