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     [SOLVED] Need to print out less than symbol in a concatenation (SOLVED)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Need to print out less than symbol in a concatenation (SOLVED)
 Login/Join
 
Silver Member
posted
Hey guys,

I am having an issue where I need a less than symbol in a define file that I am concatenating.

So if I want to print when I run the report I would expect this code below to work.

 DEFINE FILE CAR
CODE/A26 = '<'|'test'|'>';
END

TABLE FILE CAR
PRINT *
CODE
END 


However, the < symbol is used to print fields in Heading and Footings when used in conjunction with a field name. In my example code, it is looking for a field called test> and prints nothing when it can't find it.

Things I have tried:
1. Searching the forums

The only result I'm getting is related to putting the less than symbol in a heading. I need my report to have it in a define file.

2. HEXBYT
 DEFINE FILE CAR
CODE/A26 = HEXBYT(60,'A1')|'test'|'>';
END

TABLE FILE CAR
PRINT *
CODE
END
-EXIT 


This gives me the same error. The report still interprets the "<" as a request for a field called "test>" and displays nothing.

3. Storing < in a different define file variable
 DEFINE FILE CAR
LT_CHAR/A1 = '<';
CODE/A26 = LT_CHAR|'test'|'>';
END

TABLE FILE CAR
PRINT *
CODE
END
-EXIT 


Different approach, same results. At this point, I don't know what else I can try. Does anyone here have any ideas?

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.105M, Windows 10, App Studio
 
Posts: 47 | Registered: October 22, 2014Report This Post
Master
posted Hide Post
quote:
Does anyone here have any ideas?


Given your first example, you can turn on HTML encoding, to encode the 'test HTML tag':
DEFINE FILE CAR
 CODE/A26 = '<'|'test'|'>';
END

TABLE FILE CAR
PRINT *
      CODE
ON TABLE SET HTMLENCODE ON
END   
 
Posts: 822 | Registered: April 23, 2003Report This Post
Silver Member
posted Hide Post
Thank you so much. This looks like it is doing exactly what I need!


WebFOCUS 8.105M, Windows 10, App Studio
 
Posts: 47 | Registered: October 22, 2014Report 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     [SOLVED] Need to print out less than symbol in a concatenation (SOLVED)

Copyright © 1996-2020 Information Builders