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 

Whichever position special character found it has to replace

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
srinivasan.keerthana79
Beginner


Joined: 22 Jan 2016
Posts: 2
Topics: 1

PostPosted: Sat Jan 23, 2016 1:44 pm    Post subject: Whichever position special character found it has to replace Reply with quote

Hi,

I had a requirement. In the file I have special character. I need to replace those special character to spaces. Don't know the special character what will have. Don't have the list but it has to be changed to spaces. I searched the forum but explicitly the special character need to be include as part of ALTSEQ command. Since I don't know the list. All the alphabet (Lower case or upper case) and Numeric (0 to 9) should retain in the file. remaining things changed to spaces. Is it possible in sort. If so provide us the solutions.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jan 23, 2016 2:04 pm    Post subject: Reply with quote

srinivasan.keerthana79,

How big is the field in question that contains special characters? Depending on the length you can use the solution in this topic to replace the special characters to a space.

http://www.mvsforums.com/helpboards/viewtopic.php?t=12540
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

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


Joined: 22 Jan 2016
Posts: 2
Topics: 1

PostPosted: Sat Jan 23, 2016 2:33 pm    Post subject: Reply with quote

Thanks kolusu. But the 1st 10 character alone key fields. It does contain only numeric values. The remaining 240 characters contains valid with bad character. I could not use such many overlay syntax. Is it possible any other way.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jan 23, 2016 2:45 pm    Post subject: Reply with quote

srinivasan.keerthana79 wrote:
Thanks kolusu. But the 1st 10 character alone key fields. It does contain only numeric values. The remaining 240 characters contains valid with bad character. I could not use such many overlay syntax. Is it possible any other way.


srinivasan.keerthana79,

You are better off writing a program to get the desired results when you not aware of the special characters you can have.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

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 -> Job Control Language(JCL) 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