August 20, 2007, 10:29 AM
<Umar Farook S>Subtotals
hi i get an output like this
Portfolio MM Ref# Murex Ref# Type Counterparty NAIC Rating
BCVOLRT MSS027089 1636 Swap BEAR STEARNS BK
Subtotal BCVOLRT
1636
BCVOLRT MSS027116 1637 Swap UBS AG
Subtotal BCVOLRT
1637
BCVOLRT MSO026994 2727 Option BEAR STEARNS BK
Subtotal BCVOLRT
2727
BCVOLRT MSO026996 2728 Option BEAR STEARNS BK
Subtotal BCVOLRT
2728
BCVOLRT MSO027027 2729 Option BEAR STEARNS BK
Subtotal BCVOLRT
2729
But i need an ouput like this
BCVOLRT MSS027089 1636 Swap BEAR STEARNS BK
BCVOLRT MSS027116 1637 Swap UBS AG
BCVOLRT MSO026994 2727 Option BEAR STEARNS BK
BCVOLRT MSO026996 2728 Option BEAR STEARNS BK
BCVOLRT MSO027027 2729 Option BEAR STEARNS BK
Subtotal BCVOLRT
the code that i am using is
PRINT
PORTFOLIO_SUB_SEGMENT AS 'Portfolio'
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT
BY PORTFOLIO_SUB_SEGMENT NOPRINT
BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'
August 20, 2007, 10:37 AM
FrankDutchquote:
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
remove that line...
August 20, 2007, 11:06 AM
<Umar Farook S>but i need a subtotal on portfolio
August 20, 2007, 11:17 AM
FrankDutchOk, in that case
PRINT
PORTFOLIO_SUB_SEGMENT NOPRINT
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT
BY PORTFOLIO_SUB_SEGMENT NOPRINT
BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON PORTFOLIO_SUB_SEGMENT SUBHEAD
"<PORTFOLIO_SUB_SEGMENT"
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'
August 20, 2007, 12:16 PM
<Umar Farook S>nothing seems to work out my way
August 20, 2007, 02:56 PM
GizmoYou issue is probably due to either the legal entity or the asset changing before the portfolio. Move the portfolio sort higher.
August 20, 2007, 04:19 PM
ypatelI think Gizmo is right !! ASSET_ID is changing on every record so you getting subtotal on every line. putting "BY PORTFOLIO_SUB_SEGMENT NOPRINT" as the first SORT/by field should give you what you want.
...
TABLE FILE ...
PRINT
PORTFOLIO_SUB_SEGMENT AS 'Portfolio'
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
--
BY PORTFOLIO_SUB_SEGMENT NOPRINT
--
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT
BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'
August 21, 2007, 09:46 AM
<Umar Farook S>yup thanks got it right by rearanging the sortby columns