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

DB2 Unload - extra space in a file


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

New User


Joined: 21 Nov 2008
Posts: 2
Location: gurgaon

PostPosted: Wed Dec 17, 2008 2:32 pm
Reply with quote

I'm trying to Unload DB2 data from a table into a sequential file. In the query i'm joining two tables with LEFT OUTER JOIN, when i select the rows from second table one extra space is comming(eg: if the field is 10 characters in a table, then 11 characters are comming in a file with one extra trailing space).
Please suggest how to modify the query to get currect length of data in a file.
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Wed Dec 24, 2008 4:42 am
Reply with quote

Hi Shekar

Can you post the query.


Thanks
Sai
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Dec 24, 2008 4:48 am
Reply with quote

... better the Table definition with column(s) without "NOT NULL" attribute
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 FTP VB File from Mainframe retaining ... JCL & VSAM 2
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top