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     Data Manipulation [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Data Manipulation [SOLVED]
 Login/Join
 
Silver Member
posted
The input variable can hold multiple values for JOBNO.
1.I want to read each unique value for JOBNO, 2. edit each of those values to display only the last 3 digits of the JOBNO
3.and display it on my graph.

To demonstrate in the form of an example.
Input values for JOBNO:
JOBNO1:AA123A
JOBNO2:AA123B
JOBNO3:BB123
JOBNO4:BB124

Output should look like:
23A,23B,123,124

I worked with many options but couldnt get to the result. Please could anybody help me with this. Help in the form of code would be really helpful.

This message has been edited. Last edited by: Shubha Manjit,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 29 | Registered: February 21, 2011Report This Post
Master
posted Hide Post
One of your issues is that the length of JOBNO is variable and you want the last 3 characters of the string.

The easiest way to extract these is to first use REVERSE on the entire JOBNO to get the 3 characters you want all lined up at the beginning of the string. (You may need to use LJUST to get strings over to the left after the REVERSE) Then use EDIT with a mask or SUBSTR to extract them. Then use REVERSE again on the 3-character extract to put them back in the correct order.

After that DEFINE a string long enough to hold all of your outputs and use LAST plus concatenation to build the list with the commas in between the last 3 characters of the job numbers.

This message has been edited. Last edited by: George Patton,


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Expert
posted Hide Post
An alternative to REVERSE is to Right Justify, then extract the substring - saves one step...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Oooohhhh... Good point! Dumb ol' me.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Silver Member
posted Hide Post
Thank you so much for this. It helped


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 29 | Registered: February 21, 2011Report 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     Data Manipulation [SOLVED]

Copyright © 1996-2020 Information Builders