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 right justify alpha field in across report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] need to right justify alpha field in across report
 Login/Join
 
Member
posted
I have a report in webfocus 8.105. I have 2 numerical fields that need to be shown as 2-2 meaning I must use the edit function to alpha, concatenate the dash in between. the kick is I need to present the field as right justified in a across report. I've tried /R and the RJUST function, no luck. any suggestions?

COMPUTE AMIN_SHIFTS/A4 = EDIT(MIN.GCRS_CAPACITY_CONVERSION_REPORT.GCRS_CAPACITY_CONVERSION_REPORT.SHIFTS); NOPRINT
COMPUTE RZ_MIN_SHIFTS/A4 = TRIM('L', AMIN_SHIFTS, 4, '0', 1, RZ_MIN_SHIFTS); NOPRINT
COMPUTE AMAX_SHIFTS/A4 = EDIT(MAX.GCRS_CAPACITY_CONVERSION_REPORT.GCRS_CAPACITY_CONVERSION_REPORT.SHIFTS); NOPRINT COMPUTE RZ_MAX_SHIFTS/A4 = TRIM('L', AMAX_SHIFTS, 4, '0', 1, RZ_MAX_SHIFTS); NOPRINT
COMPUTE NUSHIFTS/A10 = IF RZ_MIN_SHIFTS EQ '0' THEN '0-' | RZ_MAX_SHIFTS ELSE RZ_MIN_SHIFTS | '-' | RZ_MAX_SHIFTS;
RJSHIFTS/A10=RJUST(10,NUSHIFT,RJSHIFT);

THEN

PRINT RJSHIFTS...

BUT FIELD IS NOT RIGHT JUSTIFIED... Frowner

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 15 | Registered: October 17, 2012Report This Post
Master
posted Hide Post
use a WebFOCUS Style Sheet and JUSTIFY-RIGHT.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
...
ON TABLE SET STYLE *
TYPE=DATA, ACROSSCOLUMN=AMIN_SHIFTS, JUSTIFY=RIGHT, $
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
thank you both. User error on my part, thanks for the text clip, it showed me my acrosscolumn number was off! Wink
 
Posts: 15 | Registered: October 17, 2012Report 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 right justify alpha field in across report

Copyright © 1996-2020 Information Builders