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]Getting data to share a column.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]Getting data to share a column.
 Login/Join
 
Platinum Member
posted
I am sure this can be done, and I am sure the answer is somewhere on this forum. I am just not sure of the terminology so I am having trouble searching for a solution.

I have a report that returns 12 different pay codes in columns and totals the hours worked under each code for each employee.

It works great. If anybody took any time off it list the date and pay code they used.
The report is 12 columns wide.

We are changing the pay codes and now there are over 60. Instead of just choosing FML (Family Medical Leave) and
adding a comment like FML - Child. You now choose FM2. Payroll knows FM2 is FML - Child. No more comments required.
Our new payroll system does not have a field for comments.

The are 6 of these new pay codes for FML. FM1 - FM6. But we want them all to still show in a column titled FML.
We do not need 6 across columns to represent these codes, they can share a column. I need all 60 of these new pay codes to display in just 12 columns.

Just use a (INCLUDE) define?

IF PAYCODE EQ FM* THEN FML;
IF PAYCODE EQ B0* THEN FNL;
IF PAYCODE EQ FLO THEN FLH;

etc, etc, for all of them?

This message has been edited. Last edited by: Greg,


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Virtuoso
posted Hide Post
sounds like you are on the right track.

You need 6 defines. Put all the PAYCODE types for each in each define with IF THEN ELSE logic.
In your report print the 6 new codes.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
You could also use a decode to translate the payroll codes to something you wish to sort on. Like:
SORT_PAYROLL/A3 = DECODE ('FM1' 'FML'
                          'FM2' 'FML'
                          'FM3' 'FML'
                          ... etc ...
                          ELSE '???');

and then do the across on this new SORT_PAYROLL field.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
Or:

PAYCODE=IF EDIT(PAYCODE, '99$) EQ 'FM' THEN 'FML' ELSE ..... 


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
Platinum Member
posted Hide Post
I already have a define on the paycode field that reads a comment filed to tell if the day off was scheduled or unscheduled.

 -* DEFINE BEGIN PAYCODE
PAYCODE/A20 = IF PS_KV_PNCH_ANA_VW.PS_KV_PNCH_ANA_VW.COMMENTTEXT
EQ 'PL - Scheduled' AND PS_KV_PNCH_ANA_VW.PS_KV_PNCH_ANA_VW.PAYCODENAME EQ 'PER' OR 'PTO'
THEN 'PERS'
ELSE  IF PS_KV_PNCH_ANA_VW.PS_KV_PNCH_ANA_VW.COMMENTTEXT
EQ 'PL - Unscheduled' AND PS_KV_PNCH_ANA_VW.PS_KV_PNCH_ANA_VW.PAYCODENAME EQ 'PER' OR 'PTO'
THEN 'PERU'
ELSE PS_KV_PNCH_ANA_VW.PS_KV_PNCH_ANA_VW.PAYCODENAME; 


Should I make a new define or just expand this one to handle converting the new paycodes to old codes?


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Platinum Member
posted Hide Post
I added the new codes to the current define statement and got it working.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report 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]Getting data to share a column.

Copyright © 1996-2020 Information Builders