Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

remove dots from a string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: remove dots from a string
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: 6967
Location: porcelain throne

PostPosted: Mon Jan 05, 2009 5:47 pm    Post subject:
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

Site Director


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

PostPosted: Mon Jan 05, 2009 10:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us