Regarding Sequential file

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
shyju
Participant
Posts: 58
Joined: Thu May 19, 2005 1:00 am

Regarding Sequential file

Post by shyju »

Hi All,

Can I have a sequential file whose input is from 3 different sources and the output of the sequential file pointing to a single file ?
For example the input has three different links and the output being a single file

Thanks,
Shyju.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,
No Sequential file can have only one input link at the max.
But let us know what is that you exactly whan. Is it you want to merge all the file together or concatinate?

-Kumar
MaheshKumar Sugunaraj
Participant
Posts: 84
Joined: Thu Dec 04, 2003 9:55 pm

Post by MaheshKumar Sugunaraj »

Hi Shyju,

As Kumar stated earlier u can only one Input link from the Seq Stage,

If you have teh same meta data and u have source data coming form different sources on to common location of the same type you could use Folder Stage, Where u need to set some parameters this will take the multiple I/P files processe and send to one input file or You could concatenate the files before the process starts and run the job.


Hope the above helps.

Advance New Year wishes. :wink:

With Regards
Mahesh
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The Stage icon allows multiple input and output links, but each link has its own filename associated to it.

To have multiple links combine their owns in to a single stream, use the link collector stage.

If you attempt to have multiple output links write to the same file simultaneously, you will end up with corrupt output data because all operating systems write data in blocks, there is no concept of a "row".
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Can't help thinking what happened to the filter command option?!
you can use it to say have a:
/usr/bin/cat #PATH#/file*
as the data source instead of the conventional file name.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... other than the fact that that's for reading and the thread is about writing... and 'cat' doesn't work in the Filter like that... great answer! :wink: :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Craig,
I stand corrected, by answering to fast an answer with to short a description.
I ment you can write to 3 files (not always you can use link colector) if you want to avoid syncronising your 3 writes.
Then concatenate the files using a command stage or reading the 3 files on your next job with the filter command.
I guess I was thinking to far ahead :oops:

Then again the poster never gave info regarding what they want to do with the target file.

I don't know what crystal ball I was looking at while answering ;)
I guess the poster might reply, so I can mark that ball as dammaged or extra-ordiner.

P.S.
If you read it again (witout the example) you might understand why I understood it differently and assumed a filter might be handy.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No problem... just a little friendly harrassment. :wink:

And you would think the Filter command could handle a 'cat' like you showed but for some reason it doesn't. At least it wouldn't work like that for me on HP-UX 11.11 and DS 7.0.1. :cry:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply