reading thro seq file stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

reading thro seq file stage

Post by India2000 »

Hi,

is it possible to read multiple fixed witdth flat files thro a single seq stage?How??
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As long as they share the same structure / metadata, use the File Pattern option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

no they aren't ..I'm seperating out header nd details..reading them ..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not what I said... do they all share the same structure? Same format for headers, detail, etc with the only difference being the name of the file?
-craig

"You can never have too many knives" -- Logan Nine Fingers
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

NO..
No they are of different dml structure
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then it's up to you if you want to go to all the trouble of reading them all as one long string and then parsing each one "in job" once you determine what structure it is.
-craig

"You can never have too many knives" -- Logan Nine Fingers
djbarham
Participant
Posts: 34
Joined: Wed May 07, 2003 4:39 pm
Location: Brisbane, Australia

Post by djbarham »

India2000 wrote:no they aren't ..I'm seperating out header nd details..reading them ..
As long as each record has a record type field, you can handle different record types and multiple files using the file pattern option in the Complex Flat File stage.
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

I want to extract date value from the header for one of the columns in the output file from the fixed width flat file.I can't use the file with header with details for extracting.I want to know is there a way I can extract this header in a different file and then process.
Post Reply