Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 copying data without knowing location arunsoods DFSORT/ICETOOL 5 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us