Results 1 to 3 of 3

Thread: repeating the records in the output table ...

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    2

    repeating the records in the output table ...

    I am handling an oracle table in datastage. I want to put all data from this into another table/file where each record will be just repeated certain number of times(fixed or variable). How can I do that ?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: repeating the records in the output table ...

    You simply need to insert the records by selection from the table to another table. Repeat the process as many number of times you want to complete teh process. Don't forget to commit after completition of every process.


  3. #3
    Junior Member
    Join Date
    Oct 2007
    Answers
    2

    Re: repeating the records in the output table ...

    Thanks , but I am not clear what you said.I am explainig again my querry

    Suppose my table has two rows , three columns. Now by passing this through a Transformer stage , I am adding another column to it , with values ( let 2 & 3) in the row 1 & row 2 respectively. So my table has now 2 rows & 4 columns.Now I want to pass this table to another stage so as to create a new table table which will have each row repeated the number of times as in the new column (2 & 3) , so that my final table will have in total 5 rows , 2 same rows & 3 same rows . Remember these values 2 & 3 are not fixed , it depends on the values in the original table.
    What must be that stage & how to proceed?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact