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

Justify Function in DB2 to Justify the CHAR fields


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

New User


Joined: 14 Feb 2007
Posts: 6
Location: Bangalore, INDIA

PostPosted: Wed Feb 14, 2007 5:45 pm
Reply with quote

Hi There,

Is there any function available in DB2 to Justify the CHAR fields.

Thanks in advance.

-Tirumala.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1209
Location: Bangalore,India

PostPosted: Wed Feb 14, 2007 5:47 pm
Reply with quote

Hi There,

We have LTRIM ,RTRIM in db2


publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.sqlref/bjnrmstr254.htm
Back to top
View user's profile Send private message
tirumalg

New User


Joined: 14 Feb 2007
Posts: 6
Location: Bangalore, INDIA

PostPosted: Wed Feb 14, 2007 5:57 pm
Reply with quote

Ekta,

Assume that the string contains '12345 ', I am expecting the result ' 12345'. Will you let me know how can I achive this with LTRIM/RTRIM.
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 FUNCTION ADD-DURATION COBOL Programming 11
No new posts Partial Sort conditions for PD fields DFSORT/ICETOOL 16
No new posts Pull data using date difference betwe... DB2 6
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
No new posts COBOL 6.4 - User Defined Function nee... COBOL Programming 6
Search our Forums:


Back to Top