Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7566415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:24:24+00:00 2026-05-30T14:24:24+00:00

I have data on a WebSphere MQ queue. I’ve written a script task to

  • 0

I have data on a WebSphere MQ queue. I’ve written a script task to read the data, and I can output it to a variable or a text file. But I want to use that as input to a dataflow step and transform the data. The ultimate destination is a flat file.

Is there a way to read the variable as a source into a dataflow step? I could write the MQ data to a text file, and read the text file in the dataflow, but that seems like a lot of overhead. Or I could skip the dataflow altogther, and write all the transformations in a script (but then why bother with SSIS in the first place?)

Is there a way to write a Raw File out of the script step, to pass into the dataflow component?

Any ideas appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:24:25+00:00Added an answer on May 30, 2026 at 2:24 pm

    If you’ve got the script that consumes the webservice, you can skip all the intermediary outputs and simply use it as a source in your dataflow.

    Drag a Data Flow Task onto the canvas and the add a Script Component. Instead of selecting Transformation (last option), select Source.

    Double-Click on the Script Component and choose the Input and Output Properties. Under Output 0, select Output Columns and click Add Column for however many columns the web service has. Name them appropriately and be certain to correctly define their metadata.

    Once the columns are defined, click back to the Script tab, select your language and edit the script. Take all of your existing code that could write that consumes the service and we’ll use it here.

    In the CreateNewOutputRows method, you will need to iterate through the results of the Websphere MQ request. For each row that is returned, you would apply the following pattern.

    public override void CreateNewOutputRows()
    {
        // TODO: Add code here or in the PreExecute to fill the iterable object, mqcollection
    
        foreach (var row in mqcollection)
        {
            // Adds a new row into the downstream buffer
            Output0Buffer.AddRow();
    
            // Assign all the data to the correct locations
            Output0Buffer.Column = row.Column;
            Output0Buffer.Column1 = row.Column1;
    
            // handle nulls appropriately
            if (string.IsNullOrEmpty(row.Column2))
            {
                Output0Buffer.Column2_IsNull = true;
            }
            else
            {
                Output0Buffer.Column2 = row.Column2;
            }
        }
    }
    

    You must handle nulls via the _IsNull attribute or your script will blow up. It’s tedious work versus a normal source but you’ll be far more efficient, faster and consume fewer resources than dumping to disk or some other staging mechanism.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data formatted 2009-07-17T00:00:00-05:00 in varchar variable. How can I convert this data
I have data from a table in a database (string) that contain text and
I have data <tr id=row_1> <td id=td_1_1>Text 1</td> <td id=td_2_1>Text 2</td> <td><a href=# onclick=editRow(1)>Edit
lets say I have a text file with lines as such: [4/20/11 17:07:12:875 CEST]
I have data in the following format in a file ( p1, p2 )
I have data in a MySQL database. I am sending the user a URL
I have data coming from the database in the form of a DataSet .
I have data that looks like CUSTOMER, CUSTOMER_ID, PRODUCT ABC INC 1 XYX ABC
I have data from MySQL showing all organisations a customer got, with all details
I have data in this form, Article ID Company A Company B Company C

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.