Page 1 of 1

Unload using DSNUTILB

PostPosted: Wed Jan 13, 2010 11:04 am
by akanchu
Hi,

We had a utility/tool - X that we used to pull data from the DB2 table.

Due to some cost issues, we are about to stop using that tool X.

We have to start using DSNUTILB to unload the data from the same DB2 tables.

This data pulled from util X/DSNUTILB is being passed to a different system for storage purpose and reporting purpose.

We are now facing an issue in the difference between the format of data the tool X unloads and
the format of data DSNUTILB unloads data.

eg. I have a VARCHAR field say line-1.
using tool X, we used to get it in like :

1799 ARBYDALE LN..........................................
FFFF4CDCECCDC4DD000000000000000000000000000000000000000000
1799019284135035000000000000000000000000000000000000000000
 ---------------------------------------------------------
1234 HILTON WHITEMALL RD..................................
FFFF4CCDEDD4ECCECDCDD4DC0000000000000000000000000000000000
1234089336506893541330940000000000000000000000000000000000
 ---------------------------------------------------------
2025 S DUMPBELL AVE APT 317...............................
FFFF4E4CEDDCCDD4CEC4CDE4FFF0000000000000000000000000000000
2025020444725330155017303170000000000000000000000000000000



but with DSNUTILB, we are getting it in this format.


1799 ARBYDALE LN                                         
FFFF4CDCECCDC4DD444444444444444444444444444444444444444444
1799019284135035000000000000000000000000000000000000000000
----------------------------------------------------------
1234 HILTON WHITEMALL RD                                 
FFFF4CCDEDD4ECCECDCDD4DC4444444444444444444444444444444444
1234089336506893541330940000000000000000000000000000000000
----------------------------------------------------------
2025 S DUMPBELL AVE APT 317                               
FFFF4E4CEDDCCDD4CEC4CDE4FFF4444444444444444444444444444444
2025020444725330155017303170000000000000000000000000000000


With this way, the downstream is not able to decide where the data actually ended.

Is there an option or parameter that can be set in DSNUTILB to make the data look like the above tool X.

We cannot change the downstream systems that accept this data and straight forward conversion from space to low-values will not help as there are spaces in between the contents/text.

Any suggesions ?

Re: Unload using DSNUTILB

PostPosted: Thu Jan 14, 2010 1:02 am
by dick scherrer
Hello,

Before all is done, it may not be cheaper to replace X. . .

Once the data is extracted, you could implement code to replace the trailing spaces with x'00's.

Re: Unload using DSNUTILB

PostPosted: Thu Jan 14, 2010 11:50 am
by akanchu
Thanks dick.

Well decision has been made and we have to get rid of tool X. :(

I am working on that option too. But do not have a solution as of now to convert the trailing spaces to low values.
Especially with data and different length file issues.

thanks.

Re: Unload using DSNUTILB

PostPosted: Fri Jan 15, 2010 12:18 am
by dick scherrer
Hello,

Suggest you use COBOL.