Find the file name details used in a 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
devnhi
Premium Member
Premium Member
Posts: 68
Joined: Wed Jun 17, 2009 10:47 am

Find the file name details used in a stage

Post by devnhi »

Is there any way to find out the file name details that is used in a sequential file stage . I am able to get the row count , but want to find out the name of the file that is used in that particular stage.

I would really appreciate any information regarding .
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The easiest way is to parameterize the name. Then get the runtime value for the parameter.
Mamu Kim
samyamkrishna
Premium Member
Premium Member
Posts: 258
Joined: Tue Jul 04, 2006 10:35 pm
Location: Toronto

Re: Find the file name details used in a stage

Post by samyamkrishna »

You can see the file name in the logs if it is used as a parameter.
Open the job and see if it is hard coded.
ds_dwh
Participant
Posts: 39
Joined: Fri May 14, 2010 6:06 am

Re: Find the file name details used in a stage

Post by ds_dwh »

in seq file create one additional column in column tab,
then follow the below path
properties--->options-->filenamecolumn

in filename columngive your additional column name
ANJI
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There is a job in EtlStats that loads all the properties in PX stages into a table called ETL_PROPERTY or something like that. If you can find the job and make it work then you can get these values into a table you can query. Different stages have different properties. You have to figure out the property name to retrieve the value associated with it.
Mamu Kim
Post Reply