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

Get String without spaces


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 75
Location: Chennai

PostPosted: Fri Jul 09, 2010 12:17 pm
Reply with quote

Hi all,
I have table with some fields..i defined one field was char(35).But during stored that value less num of sting length.. i want get that record extract that data into another dataset.. but that string have with out spaces.. If u do not understand i given below for example.. i want extract data from that table to another dataset...


TABLE

ID NAME ADDRESS CITY
12 RAM 23,WEST STREET, CHENNAI
11 KUM 23,WEST STREET ,NORTH CHENNAI


EXTRACT DATASET WILL BE

12 RAM 23,WEST STREETCHENNAI
11 KUM 23,WEST STREET,NORTHCHENNAI


please help me... i used RTRIM but during extract that will be there in address and city.. address is char(35) .. in that table address and city have spaces.. in dataset i don't want space between address and city
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Jul 09, 2010 5:15 pm
Reply with quote

Hi CMSMOON,

How you tried the function REPLACE().

Just check it out in the DB2 V9 - SQL REFERENCE manual.

Thank You,
Sushanth
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts ICETOOL to SUM String DFSORT/ICETOOL 1
No new posts BPXBATCH SFTP to remote path having s... All Other Mainframe Topics 6
Search our Forums:


Back to Top