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

INSPECT - Replacing all leading spaces by a single space


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

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Thu Mar 04, 2010 12:24 pm
Reply with quote

Hi,

This is my requirement.I have a string like this

'amount1 =********$25.00;amount2 =*******$33.00;value 1 =***44'


* for spaces

I need to convert this string as

'amount1 = $25.00;amount2 = $33.00;value 1 = 44'

Can I use INSPECT for this ? IF so what is the format.

Thanks,
Anil
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 04, 2010 2:35 pm
Reply with quote

Not to disappoint you but have you tried something yet, please tell us?
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: Thu Mar 04, 2010 8:32 pm
Reply with quote

Hello,

Suggest you look into "reference modification" rather than INSPECT. . .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Mar 05, 2010 10:27 am
Reply with quote

And please learn to use BBCode (see FAQ).
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top