473,395 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

EXPORT problem

DB2 UDB ver8.1 does not support the EXPORT file type of
ASC(nondelimited) . If there a workaround I have the following table
that I need exported or unload to a flatfile as nondelimited fixed
width column format. Any help will be appreciated.

CREATE TABLE cf_recs ( BDY_REC_TYPE CHARACTER (3) , SOURCE_SYSTEM
CHARACTER (6) , EMP_NO CHARACTER (30) , EFFECT_DATE DATE ,
DEPARTMENT_ID CHARACTER (10) )
Nov 12 '05 #1
2 2547
Thanos wrote:
DB2 UDB ver8.1 does not support the EXPORT file type of
ASC(nondelimited) . If there a workaround I have the following table
that I need exported or unload to a flatfile as nondelimited fixed
width column format. Any help will be appreciated.

CREATE TABLE cf_recs ( BDY_REC_TYPE CHARACTER (3) , SOURCE_SYSTEM
CHARACTER (6) , EMP_NO CHARACTER (30) , EFFECT_DATE DATE ,
DEPARTMENT_ID CHARACTER (10) )


db2 -x "select * from cf_recs" > cf_recs.asc

Jan M. Nelken
Nov 12 '05 #2
pz
Or

db2 export to file.asc of del
select bdy_rec_type || source_system || emp_no || char(effect_date) ||
department_id from cf_recs

Jan M. Nelken wrote:
Thanos wrote:
DB2 UDB ver8.1 does not support the EXPORT file type of
ASC(nondelimited) . If there a workaround I have the following table
that I need exported or unload to a flatfile as nondelimited fixed
width column format. Any help will be appreciated.

CREATE TABLE cf_recs ( BDY_REC_TYPE CHARACTER (3) , SOURCE_SYSTEM
CHARACTER (6) , EMP_NO CHARACTER (30) , EFFECT_DATE DATE ,
DEPARTMENT_ID CHARACTER (10) )

db2 -x "select * from cf_recs" > cf_recs.asc

Jan M. Nelken

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: DarkSpy | last post by:
many c++ compilers including "gcc" have not implemented the "export" keyword, but the comeau compilers made it (just i knew). i want to know about: is it too difficult to implement "export"...
2
by: Volker Zink | last post by:
I have a problem with a 9i.2 database. During export i always get following error (its in german): .... .. Kontext-Namespaces werden exportiert .. Exportieren der...
1
by: steve | last post by:
hi, during a full export of my export of a (Release 9.2.0.4.0 - Production ) database i'm getting the following: I have been thru metalink, and can find nothing that is exactly the same, even...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
1
by: Janne Ruuttunen | last post by:
Hello DB2 people, I'm having problems exporting >= 250000 lobs to IXF files with the LOBSINFILE option, using a legacy DB2 2.1 system on Win NT. If I don't specify a path for the lobs,...
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
2
by: Regnab | last post by:
I've got my code working so that it'll count the number of columns in the table and move across (eg Range A-P and then range Q-W). Problem is when I get to the end of the single letters and get...
3
by: Marja Ribbers-de Vroed | last post by:
Hi, One of my clients has a strange problem with my webapplication which I think may be related to some firewall setting on his computer. On several screens in the application, it is possible...
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
9
by: NEWSGROUPS | last post by:
I have data in a table in an Access 2000 database that needs to be exported to a formatted text file. For instance, the first field is an account number that is formatted in the table as text and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.