Moving columns from input tab to output tab

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
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Moving columns from input tab to output tab

Post by abc123 »

I have a modify stage in my job. All input column are populated. However, the output columns are empty. I want to move all input columns automatically to output columns without having to import it from somewhere. How do I do it?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You set up Specifications.

Each output column must have a specification.

You can have a KEEP specification to pass through column(s) that do not need to be modified, or a DROP specification to manage column(s) that do not need to be passed through, but not both.

Every other output column needs a Specification. You will note, from its icon, that Specification is a multiple property.

You might also read vmcburney's blog on Learning the Modify Stage
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

ray, thank you for your response. I know about the KEEP specification. That requires that I specify every column that I need to keep. I have over 100 columns. I was wondering if there was another way or some other technique to get around it and apprently there isn't.

Thanks.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

Actually, I wanted the columns from input tab moved to the output tab at design time. It doesn't happen. How do I get the columns moved at design time without manually typing them?
s_boyapati
Premium Member
Premium Member
Posts: 70
Joined: Thu Aug 14, 2003 6:24 am
Contact:

Post by s_boyapati »

abc123 wrote:Actually, I wanted the columns from input tab moved to the output tab at design time. It doesn't happen. How do I get the columns moved at design time without manually typing them?
enable runtime column propagation for the job.

Sree
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

No, it doesn't work. I enabled RCP across the project, job and stage. I still see the Output tab as empty. There is no way to drag the columns from the input tab to the output tab.
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

I don't know what exactly you are trying to do. But with your RCP enabled, You can just use DROP option to drop the columns which are not needed and this will retain the other columns. whereas in KEEP option you need to specify every single column that is needed in the output.

Sam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

abc123 wrote:No, it doesn't work. I enabled RCP across the project, job and stage. I still see the Output tab as empty.
Of course it stays empty - that's why it's called Runtime Column Propagation. It happens automatically at runtime.
-craig

"You can never have too many knives" -- Logan Nine Fingers
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

Well. After the modify stage, I have a sequential file stage. The input of this stage has no columns because the output of the modify stage has no columns. The job will not compile. I had to do this manually. Took a lot of time.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As I commented on Vincent's blog, the Modify stage is primitive. Deliberately. That's the secret of its success - it's fast, because YOU do the work.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

Seems obvious which leads me to believe I am missing the point. Can you do a save of the input tab of the modify stage into a table definition and then do a load into the output tab of the same table definition? It appears your problem is that there is no easy way to drag and drop the link columns from the input to the output column of the modify stage. Doing it via RCP is an option but unless you specifcally want RCP functionality, I would avoid it since as you see it hides important Metadata details like the actual columns.
Post Reply