Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Getting spaces while unloading data from table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Getting spaces while unloading data from table
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: 6968
Location: porcelain throne

PostPosted: Mon Mar 19, 2012 5:57 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us