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

Getting spaces while unloading data from table


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

New User


Joined: 07 Dec 2011
Posts: 26
Location: India

PostPosted: Mon Mar 19, 2012 5:52 pm
Reply with quote

Code:
0000000000000000 KL 2012-02-24 2013-01-14 00.00.00 23.59.59
[color=red]7081263604086679 KL 2011-09-19 [/color]2012-09-26         ?        ?
0000000000000000 KL 2012-01-20 2012-07-15 00.00.00 23.59.59


Hi all,

Please let me know why i am getting spaces while unloading data from db2 table. all these fileds are char and date fields. i want fixed width file but some spaces are getting for some fields. Please help me out in this.

Thanks,
sravani.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Mar 19, 2012 5:57 pm
Reply with quote

gee, maybe if we knew anything about your unload sql,
we may have an idea.

you say these are date fields. db2 date data/type or char data/type?

db2 date datatype are not char fields.

and since they are char / i must assume that they are/
could they possibly contain spaces???????

by the way, markup language does not work within code tags.
Back to top
View user's profile Send private message
sravz chinnu

New User


Joined: 07 Dec 2011
Posts: 26
Location: India

PostPosted: Mon Mar 19, 2012 6:22 pm
Reply with quote

Code:
ONL_PRO_CD                             POSITION(      25         )
CHAR(                      8) ,
" "                                    POSITION(      33         )
CHAR(                     16)
     NULLIF(      49)='?',
" "                                    POSITION(      50         )
CHAR(                      2)
     NULLIF(      52)='?',


Hi Dick,
Has this because of this....? i am unable to understand that why spaces are inserted in file. this is the syspunch card which is generated by system.

thanks,
Sravani.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Mar 19, 2012 6:29 pm
Reply with quote

I would suggest you look at the cards in syspunch and see if there is any correlation between them and the mystery spaces in the unload file.
Back to top
View user's profile Send private message
sravz chinnu

New User


Joined: 07 Dec 2011
Posts: 26
Location: India

PostPosted: Mon Mar 19, 2012 7:33 pm
Reply with quote

Can some one help me in this. I just found something related post on forum.

http://ibmmainframes.com/viewtopic.php?p=290084#290084

Please let me know the resolution for this?
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 Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top