IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

remove dots from a string


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish kanamarlapudi

New User


Joined: 23 Jul 2008
Posts: 29
Location: Little Rock - Arkansas

PostPosted: Mon Jan 05, 2009 5:34 pm
Reply with quote

Hi,

My requirement is that i need to remove dots '.' coming in front of the stirng. Plz help me out in this.

Example 1 :-

Input is :- .SANDERSON

I need to get output as SANDERSON by removing dots at first


Example 2 :-

Input is :- ..SANDERSON

I need to get output as SANDERSON by removing first 2 dots.


Thx,
satish
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jan 05, 2009 5:47 pm
Reply with quote

1. They may look like 'dots' to you, but they are probably unprintable char and are represented as 'dots', when you view the input.

2. what is the exact field definition of the input. are there always 1 dot or 2 dots or? what defines what characters are usable?

when you are in view or edit mode and looking at the input, use hex on to determine what your input.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 05, 2009 10:13 pm
Reply with quote

Hello,

Quote:
My requirement is that i need to remove dots '.' coming in front of the stirng.
A slight correction. . . You need to understand "the dots" before you try to do anything with/about them.

I suspect that whether there is one or two dots, the space preceeding the "good data" is still 2 bytes (looks like some length attribute?). Does this string come from a file, a table, or somewhere else?

As DBZ mentioned, you need to provide some more info for someone to be able to help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top