Well, after searching for related topics I found this viewtopic.php?p=361392#361392
I want to send a zip file to MQ but am struggling to define the source to the MQ stage. If it's a compressed file, what do I specify in the sequential stage for the metadata? (original file is XML, but larger than life, thus the reason to compress the file before placing it on the Q)
Any other ideas on getting the zipped file onto the Q?
thanks guys
Sending files to MQ
Moderators: chulett, rschirm, roy
Not sure if DataStage will be the right way to go here.....there really isn't a regular way to "lift" a whole file and send it down a link........the only way to get something to the MQ Stage is to represent it as a "column" in DS....your zip file is likely to run into all kinds of issues related to data types, its' length, etc.
...but....for what it's worth, you might consider seeing if the Server Folder Stage can lift it...it was designed for picking up whole files, though usually for pure text purposes (such as entire XML documents). How big is big? DS itself probably won't be happy with a column that is more than a few hundred meg.....was it a Queue size issue?
I'll leave other DS experts to comment, but there may be ways in Enterprise Edition to exploit the External Source Stage, or perhaps a custom Operator or BuildOp.......and in the most recent releases, the Connectors [MQ Connector included] support more intelligent transfer of binary data by reference (was put in there for limited BLOB type support)....but it's not for the faint-of-heart and not something I know if you can tap into in custom fashion...
This may be one better suited to scriptinig at the command line.
Have you considered MQ 7's own File Transfer options?
Ernie
...but....for what it's worth, you might consider seeing if the Server Folder Stage can lift it...it was designed for picking up whole files, though usually for pure text purposes (such as entire XML documents). How big is big? DS itself probably won't be happy with a column that is more than a few hundred meg.....was it a Queue size issue?
I'll leave other DS experts to comment, but there may be ways in Enterprise Edition to exploit the External Source Stage, or perhaps a custom Operator or BuildOp.......and in the most recent releases, the Connectors [MQ Connector included] support more intelligent transfer of binary data by reference (was put in there for limited BLOB type support)....but it's not for the faint-of-heart and not something I know if you can tap into in custom fashion...
This may be one better suited to scriptinig at the command line.
Have you considered MQ 7's own File Transfer options?
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 14
- Joined: Fri Sep 03, 2004 2:50 pm
- Location: NJ
Cool. Just curious --- what did you use for the base64 conversion?
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 14
- Joined: Fri Sep 03, 2004 2:50 pm
- Location: NJ