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] Right Justified Indexed Fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Right Justified Indexed Fields
 Login/Join
 
Gold member
posted
Hello All,

We are a fresh new customer of IBI and we have an issue i am not able to figure out yet.

We have indexed character fields that are right justified in our DB2 tables, we'd like to parm those fields in a report but avoid the user adding the spaces. The LJust command causes the program to halt since i lose my indexing, and lookup tables take too long to load.
We're looking for functionality to do this before sending into the where clause.

Hope i explained clear enought. We're on WF 7.6.10 on an Iseries server.

This message has been edited. Last edited by: Joe Beydoun,


version 8202M
Reporting Server on
Windows Server using DB2 Connect to access data from iseries.
 
Posts: 78 | Registered: December 29, 2009Report This Post
Virtuoso
posted Hide Post
Have you tried right-justifying your user input parm using the RJUST function?

DEFINE FILE <filename>
 USER_INPUT/A<input length> = RJUST(<input length>, <input parm>, USER_INPUT)
END

TABLE FILE <filename>
 SUM/PRINT <column name(s)>
 BY <column name>
 .
 .
 WHERE <indexed column name> EQ USER_INPUT ;
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Dan,

Doing a define does the computation on every field in the file before reaching the where clause, on a 27m record file, it completely slows the report down.

Thanks.


version 8202M
Reporting Server on
Windows Server using DB2 Connect to access data from iseries.
 
Posts: 78 | Registered: December 29, 2009Report This Post
Virtuoso
posted Hide Post
Joe,

Right-Justified? Is this Hebrew or Arabic?

Are you saying that the user enters a parameter value (in &PARM) and then you want to RJUST it? Could you use:
  
-SET &PARMLEN=&PARM.LENGTH;
-SET &MYPARM=RJUST(&PARMLEN, &PARM, 'A&PARMLEN.EVAL');
...
TABLE FILE filename
...
WHERE field EQ '&MYPARM'
...
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
Joe,

You are absolutely correct about using DEFINE to right-justify the user input. The Dialogue Manager solution from Daniel is the way to go.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Dan and Danny, thanks for the responses, but the issue was resolved using this code since the Parm Lenght function only returned the lenght of characters i typed:

-SET &ITEM = RJUST 10,&ITEM ' ','A10');

I'll take different suggestions if they're available, but i'll call this issue resolved.


version 8202M
Reporting Server on
Windows Server using DB2 Connect to access data from iseries.
 
Posts: 78 | Registered: December 29, 2009Report 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] Right Justified Indexed Fields

Copyright © 1996-2020 Information Builders