Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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 To remove spaces from a VB file using... Selvarajars DFSORT/ICETOOL 2 Thu Jun 21, 2018 6:57 pm
This topic is locked: you cannot edit posts or make replies. To remove spaces in a variable length... Selvarajars JCL & VSAM 1 Thu Jun 21, 2018 1:07 pm
No new posts Remove all Parenthetical Statements -... JayaprakashT DB2 2 Fri Apr 27, 2018 3:57 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us