Can we use a BCP Load to load data into Sequential Files

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sck
Participant
Posts: 18
Joined: Thu Mar 18, 2004 2:58 pm

Can we use a BCP Load to load data into Sequential Files

Post by sck »

Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.

Thanks
Krishna
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: Can we use a BCP Load to load data into Sequential Files

Post by ogmios »

sck wrote:Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.

Thanks
Krishna
How would you bulk load to a sequential file :wink: ?
Bulk loaders usually take a sequential file and dump it into a database by sidestepping a lot of database checks, temporarily dropping indexes, ... For simple sequential files no such thing exists or would be needed.

Just use a sequential stage.

Ogmios
marc_brown98
Premium Member
Premium Member
Posts: 67
Joined: Wed Apr 14, 2004 11:33 am

Re: Can we use a BCP Load to load data into Sequential Files

Post by marc_brown98 »

ogmios wrote:
sck wrote:Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.

Thanks
Krishna
How would you bulk load to a sequential file :wink: ?
Bulk loaders usually take a sequential file and dump it into a database by sidestepping a lot of database checks, temporarily dropping indexes, ... For simple sequential files no such thing exists or would be needed.

Just use a sequential stage.

Ogmios
natively in sql server and sybase you used to be able to use bcp with a -out parameter and it would unload tables. It can be handy, when needed.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But then you wouldn't need DataStage. :?

You could, of course, use DataStage to trigger the bcp -out command if needed as part of something larger. But why not use the graphical design paradigm; SELECT from your SQL Server table and write to a file through a Sequential File stage.

A Sequential File stage is the fastest of all DataStage stage types.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply