Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us