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 

Validating a Field in CLIST

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Tue Jul 25, 2006 12:18 pm    Post subject: Validating a Field in CLIST Reply with quote

Hi Everyone,

Please help me on this , I am validating a field for special character
when -,*,+ is encountered the length function which I am using is
failling.

&tr = uuu*
&j = &length(&tr)

I tried using &sysclength it is also failing. Please let me know how do I
handle *,-,+ .

Please help.

Thanks
Raj
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Jul 25, 2006 12:39 pm    Post subject: Reply with quote

Try using it as a string:

&j = &length(&str(&tr))
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Tue Jul 25, 2006 1:04 pm    Post subject: Validating for & Reply with quote

Hi ,

Thanks for the reply.
&t = abc*
&j = &length(&nrstr(&t))
This code worked .

but it is failling for &

&t = abc&
&j= &length(&nrstr(&t))

it failing saying symbolic valiable used in length function since & is part
of the string .
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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