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

DB2 Unload


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

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Oct 17, 2011 1:11 pm
Reply with quote

Hi,

I tried running a unload today to unload 2 columns of a table using DB2 unload utility.

The output file was getting created as VB.
Is there some option where I can create the file as FB?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Oct 17, 2011 5:42 pm
Reply with quote

What unload utility are you using?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Oct 17, 2011 5:50 pm
Reply with quote

may as well as tell us the datatype of the columns being unloaded.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 18, 2011 3:33 pm
Reply with quote

If everything else is fine then with the information in hand, suggest you write another SORT step, in your Job, to have VB to FB conversion.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Oct 18, 2011 4:35 pm
Reply with quote

as usual, no response from TS.

problem with changing an unload, after the fact from vb to fb,
the SYSPUNCH will not be insync.

it is better to use sql in the unload - with the PARMS(SQL) parm
and cast columns to fixed length to force a fixed length unload file
and the mask will match incase a LOAD is later required.

running a second step to convert the file
is the way someone who is not proficient with the db2 utilities handles the problem.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 18, 2011 4:44 pm
Reply with quote

dbzTHEdinosauer wrote:
it is better to use sql in the unload - with the PARMS(SQL) parm and cast columns to fixed length to force a fixed length unload file and the mask will match incase a LOAD is later required.

running a second step to convert the file is the way someone who is not proficient with the db2 utilities handles the problem.
That's why I played safe and said:
Quote:
If everything else is fine...
icon_smile.gif.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Oct 18, 2011 5:05 pm
Reply with quote

Hi All,

Sorry for the late response... There are two columns in the table. Both are char(10).

Yes, I can write a sort to convert VB to FB. But my question here was if there is some parameter which can be used in the Unload control card to create a FB file.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 18, 2011 6:29 pm
Reply with quote

gylbharat wrote:
Yes, I can write a sort to convert VB to FB. But my question here was if there is some parameter which can be used in the Unload control card to create a FB file.
dbzTHEdinosauer wrote:
use sql in the unload - with the PARMS(SQL) parm
and cast columns to fixed length to force a fixed length unload file
and the mask will match incase a LOAD is later required.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Fri Oct 21, 2011 9:10 pm
Reply with quote

Are you using the DSNTIUAL unload utility? Do you select the column as is (no functions)? If so then it should create a FB dataset.

Read the manual "DB2 Utilities Guide and Reference" appendix D for the productivity aid sample programs.
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 Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts changing defaults in db2 admin - Unlo... DB2 0
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top