Unix Technical Forum

About Reading ASC files - Urgent

This is a discussion on About Reading ASC files - Urgent within the DB2 forums, part of the Database Server Software category; --> Hi All, I am using DB2 UDB 8.1 on linux platform. I want to import or read .asc file ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:55 AM
Suresh
 
Posts: n/a
Default About Reading ASC files - Urgent

Hi All,

I am using DB2 UDB 8.1 on linux platform.

I want to import or read .asc file from DB2 stored procedure. This file
contains encryption and decryption key in multiple lines. I have
following problem when i use load command or import command

When I use load or import utility then these separate lines of
encryption and decryption key goes as separate rows in table. So when I
again want to export this data and use these keys in my program i am
facing problem.
So Is there any way in DB2 UDB so that I can read .asc file byte by
byte and then place that data in my table.

My single file contain single key value in multiple rows. I want to
store this value in single row means single cell.
Please give me suggestion if any other method.

Thanks
Suresh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:56 AM
Phil Sherman
 
Posts: n/a
Default Re: About Reading ASC files - Urgent

You've at least two possible alternatives:
1. Add an additional record at the beginning and end of the file
containing a single double-quote character (the string delimiter),
specify loading from a DEL file and use the DELPRIORITYCHAR modifier.
This assumes that you don't have a double-quote character in the key.
You can change the delimiter character using DELCHAR. See the LOAD
section of the utilities reference for additional details.
2. Ask your support programmer to write a shell script that will copy
the file, removing the record delimiters, making a single record to load.

Phil Sherman



Suresh wrote:
> Hi All,
>
> I am using DB2 UDB 8.1 on linux platform.
>
> I want to import or read .asc file from DB2 stored procedure. This file
> contains encryption and decryption key in multiple lines. I have
> following problem when i use load command or import command
>
> When I use load or import utility then these separate lines of
> encryption and decryption key goes as separate rows in table. So when I
> again want to export this data and use these keys in my program i am
> facing problem.
> So Is there any way in DB2 UDB so that I can read .asc file byte by
> byte and then place that data in my table.
>
> My single file contain single key value in multiple rows. I want to
> store this value in single row means single cell.
> Please give me suggestion if any other method.
>
> Thanks
> Suresh
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com