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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm

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