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: 6970
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 7 Thu Dec 14, 2017 3:52 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

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