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

UNLOAD table using IKJEFT01 - executing DSNTIAUL - Need help


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

New User


Joined: 17 Jun 2009
Posts: 38
Location: Denver

PostPosted: Wed Feb 10, 2010 3:59 am
Reply with quote

Hi

I have a proc which uses DSNTIAUL via IKJEFT01 to unload a table.
The entire table is unloaded. The sum of column lengths is 737. I have a requirement where I need to append couple of blank spaces to the end as part of a business requirement. The SYSPUNCH always have the sum of columns. Is there a way to force trailing spaces when I unload the table.
I want to avoid another step to copy the output to another file because of some RACF restrictions.

I tried to allocate my output file before hand with 739 as the LRECL. But the utility recreated that to 737.

Any advice is appreciated
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Feb 10, 2010 12:41 pm
Reply with quote

Hi Manu,

Ask you DBA to increase the length of the last column for this table. Default is SPACES for CHAR data types.

Sushanth
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Wed Feb 10, 2010 8:00 pm
Reply with quote

You can supply SQL as input to the unload utility. I haven't tried running unload with the SQL suggested below but I suspect it will work:
Code:
SELECT FIELD1,FIELD2,FIELD3...,FIELDn,'  ' FROM YOUROWN.YOURTABLE

The backdraw is that you have to specify all the fields to be unloaded instead of the default SELECT * where you cannot append additional information to be included.

Remember to set the PARM('SQL') when invoking DSNTIAUL.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Feb 11, 2010 11:08 am
Reply with quote

Nice Idea Kjeld.
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 Load new table with Old unload - DB2 DB2 6
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top