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 

String

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


Joined: 03 Jan 2006
Posts: 11
Topics: 8

PostPosted: Sat Jan 28, 2006 5:52 am    Post subject: String Reply with quote

Hi

I have a string "BHARAT KUMAR", I am moving this string to another variable with size 20.

How can i delimit the size in the variable,spaces should not be contianed in the string.

How can i do this?

I hope i can use the String syntax with delimit size,but i am not sure...

Thanks in Advance

Cheers
NAG
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jan 28, 2006 5:58 am    Post subject: Reply with quote

Quote:

I hope i can use the String syntax with delimit size,but i am not sure...


nag77,

why not simply try it and see what happens.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nag77
Beginner


Joined: 03 Jan 2006
Posts: 11
Topics: 8

PostPosted: Sat Jan 28, 2006 6:17 am    Post subject: Reply with quote

Hi kolusu


STRING EMP_NAME SPACE VAR_NAME2 DELIMITED BY SIZE INTO VAR_NAME3

when i am trying with this ,I am getting errors.

Thanks
NAG
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jan 28, 2006 6:21 am    Post subject: Reply with quote

Quote:

when i am trying with this ,I am getting errors.


nag77,

How do you expect us to help you without even know what the error is ?

Check this link for a detailed explanation of the string command

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/6.2.37?DT=20020920180651

See this topics for examples .

http://www.mvsforums.com/helpboards/viewtopic.php?t=5156&highlight=string

http://www.mvsforums.com/helpboards/viewtopic.php?p=21816#21816

Hope this helps....

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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