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

selecting 30 byte field in a 40 byte var


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

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Mon Nov 16, 2009 4:54 pm
Reply with quote

the column length is 30 bytes. I want to select it as 40 byte field using query. is it possible to select in a way like i said above... i tried with substr... but it could not go beyond 30 bytes....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Nov 16, 2009 5:16 pm
Reply with quote

please re-read your post. if it makes any sense to you then I am very confused.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Nov 16, 2009 5:20 pm
Reply with quote

Prabakar,

Did you try using CONCAT.

Eg:-
Quote:
CONCAT(column,'spacesspaces')


Thank You,
Sushanth
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Mon Nov 16, 2009 6:13 pm
Reply with quote

thank u very much Sushanth... it works icon_smile.gif
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top