IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Type tree generated using databaseInterface Desiger, but the DB column name

    Posted 03/22/12 05:09 AM

    Originally posted by: mohan6


    Hi,
    I have generated input type tree using DID to get data from database and passing the output to .xls file.
    I am not getting the DB column names in the output file,Please advice to get both column name and data into the output file.(.xls or txt files).
    I have used the sql: select * from MessageTBL.

    Input sample MessageTBL: Database table)

    Num Name City
    1 X FC
    2 Y

    Regards
    Mohan
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Type tree generated using databaseInterface Desiger, but the DB column name

    Posted 03/23/12 01:55 PM

    Originally posted by: jvanboga


    several ways you can handle this. Thing to keep in mind is that while great at what it does DBID is not as sophisticated as some tools.

    For example.... This would give you what you are looking for you will not be able to build a type tree with it.

    column column_1 name column_1,
    column column_2 name column_2,
    select column_1, column_2 from table_name
    where condition_stmnt

    This would select the names of your columns without the data and can be used in DBID

    Select column_id, column_name
    from user_tab_columns
    where table_name='table'
    order by 1

    but it doesn't select the data with the column_names. Also, the columns are returned as rows.

    This won't work either because the definition for the column name won't match date and numeric column definitions....

    select 'column1' column1,
    'column2' column2,
    'column3' column3
    from table1
    union
    select column1,
    column2,
    column3
    from table1

    Usually, what we do is define an output with an optional record/row and insert the column name in the output card.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Type tree generated using databaseInterface Desiger, but the DB column name

    Posted 03/23/12 02:23 PM

    Originally posted by: jvanboga


    sorry, wanted to give you another option as well....

    you can write your query as a rule in a runmap output card. have a second runmap read the outputfile from the first.

    less than pretty but works.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Type tree generated using databaseInterface Desiger, but the DB column name

    Posted 03/26/12 06:51 AM

    Originally posted by: mohan6


    Hi, thanks and i have tired it worked(both DB column name and value are populating). And we have around 60 columns in the table.I have tried in the other way also.

    included a Blob field in the outputtree and manually mentioned the all the column names.
    OutputTree:

    Header_ColName(s):= "NO,NAME,CITY"
    Blob_Row(s):= TEXT(Row:DataBase_Input)

    Thanks for your suggestions
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender