ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Txt File Empty with FileOutput Node (IIB 9.0.0.2)

Post new topic  Reply to topic
 Txt File Empty with FileOutput Node (IIB 9.0.0.2) « View previous topic :: View next topic » 
Author Message
Astantler
PostPosted: Tue Mar 10, 2015 1:41 pm    Post subject: Txt File Empty with FileOutput Node (IIB 9.0.0.2) Reply with quote

Newbie

Joined: 10 Mar 2015
Posts: 4

Hi Everyone,

I'm developing an application that receives a DataObject from a MQ Queue. In my flow i'm building a semicolon-delimited String that i want to write in a txt file with FileOutput Node.

My Flow is:

MQ Input (DataObject Input Parser) -> Compute (Logic for build the string) -> FileOutput Node

I've tried with this approaches and i'm getting the same result: the file is written but it's empty:

1. Store the string in Environment.Variables.XXX (XXX is the container of this data, Character defined). This path is configured in FO node.
2. Create a DFDL Message model to parse the data, only having one variable (the string that i want to store). Write the data in Root.DFDL and point the FileOutput Node to this location.

None of above has worked and i didn't found anything (here, DW, IBM Documentation) about this issue.

Other things:

1. The filename is dynamic and i'm using LocalEnvironment to set the FO properties, without problem.
2. I have double checked permissions in the folder, granted all access to the OS user (I'm on Windows 7) and it's the same: the file is written but without content.
3. I've changed the Data Location to $Root/DataObject (original data retrived) and in this case the node writes the content of this context (in a XML manner).
4. I only need one record per file (the option that i'm using is "Record is whole file").
5. Compute node has the "LocalEnvironment and Message" computing option.

What i am doing wrong? I'm forgetting something?

I appreciate some light on this...
Back to top
View user's profile Send private message
Astantler
PostPosted: Tue Mar 10, 2015 7:55 pm    Post subject: Solution Reply with quote

Newbie

Joined: 10 Mar 2015
Posts: 4

Ok, i solved my problem. My apologies, i've found the solution here in MQSeries (i know, my fault, lack of research in depth):

i've used Root.BLOB.BLOB, casting Environment.Variables.XXXX and sending it to FO node:

SET OutputRoot.BLOB.BLOB = CAST(Environment.Variables.XXXX AS BLOB CCSID 1208);

Courtesy of: http://www.mqseries.net/phpBB2/viewtopic.php?p=378892&sid=641105bb955b665eae80f3f43410db47

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Txt File Empty with FileOutput Node (IIB 9.0.0.2)
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.