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
 
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

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