Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] How do I embed a carriage return in the text of my iWay Constant object

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How do I embed a carriage return in the text of my iWay Constant object
 Login/Join
 
Member
posted
This must be simple but I can't seem to find the right way to do this. I simply want to split two text strings with a carriage return so the output will show up on two separate lines when written to a flat text file.

I have a iway service object that is a com.ibi.agents.XDConstantAgent "or Constant" object. The output format is "flat". the Output line say looks like this _concat('Error during processing',SREG(EDAErr) ). I would like to put these two strings on separate lines. _concat('Error during processing',\n,SREG(EDAErr) ) I've tried many things in the "carriage return" area of the concatenation \n, \r, '\n', '\r', @CRLF(), CHR(13), etc. I'm at a loss as to how to do this. Any help would be greatly appreciated. I'm still learning the function reference's and escape chars of ISM...obviously.

This message has been edited. Last edited by: Phil DeBusk,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 14 | Registered: November 08, 2011Report This Post
Member
posted Hide Post
Phil,

It certainly looks like tried all the logical things, and there may not be a way to do this.

However, if you are writing the result directly to file, then consider this:

You could write 'THING1' to a file using File Write w/ "Append CRLF" = true.
Then do another constant agent for 'THING2' and another File Write to the same file. This time set "APPEND" = true, so the first one doesn't get overwritten.

If this is not what you are looking for, please open a case on our Hottrack system. I would have to research this and speak with engineering.

Regards,
Jeff
iWay Advanced Technical Support


iway
 
Posts: 4 | Registered: August 19, 2008Report This Post
Member
posted Hide Post
Thanks Jeff, yes this does produce the desired output and kudos to you for being creative! However this IS a work-around for what I believe to be a small shortcoming of the iway toolset. I like my log files to have some bare-minimum formatting.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 14 | Registered: November 08, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] How do I embed a carriage return in the text of my iWay Constant object

Copyright © 1996-2020 Information Builders