Focal Point
[CLOSED]Webfocus 8.1

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6967026586

February 23, 2017, 08:49 AM
Terri1977
[CLOSED]Webfocus 8.1
Hello,
I am pulling degree information for employees that have more than one degree. HR does not have the degrees in Banner in a specific order. Therefore, an employee can have 3 degrees, the first one is Masters, the second Doctoral, and the third Bachelors. If I pull by highest it gives me the first which is Masters. When I attempt to do the last, it gives me the Masters. I need the Doctoral. I though of pulling the graduation date, because the last degree would be the one with the highest graduation date, but for whatever reason, is not giving me the Doctoral. Can someone assist?

TABLE FILE AREA
PRINT DEPT
BY PEBEMPL_PIDM
BY HIGHEST SORDEGR_DEGC_DATE
BY HIGHEST SORPCOL_SBGI_CODE
BY HIGHEST SORDEGR_DEGC_CODE
BY HIGHEST SORMAJR_MAJR_CODE_MAJOR
ON TABLE HOLD AS FOCUS2 FORMAT ALPHA
END

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
February 23, 2017, 09:38 AM
MartinY
Try this or something similar (with proper adjustment for SORDEGR_DEGC_CODE values)
DEFINE FILE AREA
DGRORD /I1 = DECODE SORDEGR_DEGC_CODE ('MASTERS' 3 'DOCTORAL' 2 'BACHELORS' 1 ELSE 4);
END
TABLE FILE AREA
PRINT DEPT
BY PEBEMPL_PIDM
BY DGRORD NOPRINT
BY HIGHEST SORDEGR_DEGC_DATE
BY HIGHEST SORPCOL_SBGI_CODE
BY HIGHEST SORDEGR_DEGC_CODE
BY HIGHEST SORMAJR_MAJR_CODE_MAJOR
ON TABLE HOLD AS FOCUS2 FORMAT ALPHA
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