To read input file dynamically

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
kamalshil
Participant
Posts: 179
Joined: Mon Jun 23, 2008 1:19 am

To read input file dynamically

Post by kamalshil »

Hi All,
I have 5 input files which but with different structure.
We need to read the input flow and write into output file.

My question is we need to make this read of input file dynamically so that any time when required we will read only 10 columns or 5 columns and write into output file.

And planned to do in one job.I am planning to use RCP.

Is there any way i can really read only the required columns from the file directly?

Or i can read all the columns of file and drop in between the job before target.
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

I dont think you can read only the columns you need from a file as you do in a table. If it is a dataset, then yes you can do it. I believe for a file, you need to read the entire record, and need to drop the unwanted columns.

To select/drop columns dynamically, you can use schema files.
Arun
Post Reply