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  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] handle Control Chars

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] handle Control Chars
 Login/Join
 
Gold member
posted
Hi,

I have small issue with my Stored Procedure Output.
My SP returns multiple description columns and some of them have the control characters. When I print &Lines it shows more than the actual number of rows because it break the rows when it find control char and counting as new line.

Anybody have idea?

Thank You
Sandya

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 53 | Registered: December 06, 2011Report This Post
Expert
posted Hide Post
If you can identify the offending control characters, then you can use CTRAN, or other functions, to change the control characters to something else (maybe nulls?)...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Are the control characters stored in the data in the DB? Should they be there? What it sounds like is you get 'hard' carriage returns which are a bit nasty indeed, and hard to catch.

You need to identify and filter them out - I'd say this needs to be done at the DB level or in the stored procedure output formatting.


Cheers,
H.

WebFOCUS 8.1.05M
Oracle 11g - DB2
RedHat
 
Posts: 115 | Location: Brighton UK | Registered: February 19, 2005Report This Post
Gold member
posted Hide Post
Thanks for your reply.

Yes these controls are stored in data in DB.
 
Posts: 53 | Registered: December 06, 2011Report This Post
Expert
posted Hide Post
Try the REPLACE function in the Stored Proc:
  
REPLACE ((REPLACE ((REPLACE (substr(t6.scbdesc_text_narrative, 1,6000), CHR(13),'')), CHR(10),'')),';','') text_narrative,

Example


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] handle Control Chars

Copyright © 1996-2020 Information Builders