|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Timestamp or TimeStamp in LocalEnvironment ? |
« View previous topic :: View next topic » |
Author |
Message
|
Cogito-Ergo-Sum |
Posted: Mon Jan 17, 2011 11:29 am Post subject: Timestamp or TimeStamp in LocalEnvironment ? |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Hi,
In a trace node at the 'End of Data' terminal of a FileOutput node I can see the tree as LocalEnvironment->WrittenDestination->File->Timestamp. That is also the way I see in the documentation. But, in WMB Toolkit I see (in the expansion of LocalEnvironment in sources), LocalEnvironment->WrittenDestination->File->TimeStamp. The flow compiles but nothing results as TimeStamp is not available in the tree. On the other hand, if I force Timestamp in the Toolkit, then flow does not build.
What do I do ?  _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jan 17, 2011 1:07 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'm not clear on where you are trying to use this value? |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Jan 17, 2011 6:22 pm Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
My intention is to collect the path of all created files (in a FileOutput node) into a message queue. This FileOutput node has been set with 'Output File Action' as 'Time Stamp, Archive and Replace Existing File (or Create if File does not Exist)'. Once the message flow is over, it is quite possible that there are at least 2-3 files in the mqsiarchive folder and one in ../mqsiarchive folder.
To do this, I am wiring the 'End of Data' terminal of the FileOutput node to a Mapping node where I am reading the LocalEnvironment tree. In this Mapping node, I am first looking if the Action variable (present in the LocalEnvironment) tree is 'Create'. If so, then the target value is populated as
Code: |
fn:concat($source/LocalEnvironment/WrittenDestination/File/Directory, '/', $source/LocalEnvironment/WrittenDestination/File/Name) |
If the Action value is 'Replace' then the target value is populated as
Code: |
fn:concat($source/LocalEnvironment/WrittenDestination/File/Directory, '/mqsiarchive/', $source/LocalEnvironment/WrittenDestination/File/TimeStamp, '_', $source/LocalEnvironment/WrittenDestination/File/Name) |
.
My problem lies with the Replace case. I am forced to use TimeStamp (as shown above) and not Timestamp. With TimeStamp, the output does not show the timestamp value at all because in the tree, it is the Timestamp that is the valid variable not TimeStamp. But, the Toolkit thinks the contrary. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jan 17, 2011 6:49 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Okay, so the problem is with the MAPPING NODE. But, really, only with the Map Editor in the Toolkit.
Make sure your Toolkit is at the absolute latest fixpack and iFix level - use Installation Manager to make sure of this!
If you're *positive* that it is, then create a test case that has basically a FileInput->FileOutput->Mapping, and open a PMR that submits a Project Interchange File for this test case. |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Jan 17, 2011 8:47 pm Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Quote: |
Okay, so the problem is with the MAPPING NODE. But, really, only with the Map Editor in the Toolkit. |
Yes! That is exactly my problem.
Quote: |
Make sure your Toolkit is at the absolute latest fixpack and iFix level - use Installation Manager to make sure of this! |
Yes, I will follow up.
Thank you, for your time ! _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|