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
 

 

UNLOAD table using IKJEFT01 - executing DSNTIAUL - Need help

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
manugeorge2004

New User


Joined: 17 Jun 2009
Posts: 35
Location: Denver

PostPosted: Wed Feb 10, 2010 3:59 am    Post subject: UNLOAD table using IKJEFT01 - executing DSNTIAUL - Need help
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: 1013
Location: India

PostPosted: Wed Feb 10, 2010 12:41 pm    Post subject:
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    Post subject:
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: 1013
Location: India

PostPosted: Thu Feb 11, 2010 11:08 am    Post subject:
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    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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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