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
 
Get String without spaces

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Get String without spaces
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: 1013
Location: India

PostPosted: Fri Jul 09, 2010 5:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 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
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am

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