TABLE FILE HLD_FINAL PRINT CUSTOMER_ID AS 'Customer' -IF &SENDER.&I EQ 'PH' THEN GOTO PH_REP ELSE GOTO AA_REP; -PH_REP REQUESTS/D12C AS 'PH Reuests Received' -GOTO END_REP; -AA_REP REQUESTS/D12C AS 'Requests Received' -END_REP ON CUSTOMER PAGE-BREAK END
Tried with read file using loop.. but unable to print. Can you please suggest to print specific column AS name. Thanks, VijayThis message has been edited. Last edited by: FP Mod Chuck,
June 27, 2018, 10:34 AM
Prarie
Not sure why you mean my able to print, are you not getting any output. Try adding a -RUN after END.
June 27, 2018, 10:35 AM
Frans
Do you want to have 2 outputs, or everything combined in one grid?
If combined, try using Subhead on SENDER, I think togheter with HEADALIGN for the titles you can can get it in one grid.
[/CODE] DEFINE FILE HLD_FINAL AA_REQUESTS/D12C=IF SENDER EQ 'AA' THEN REQUESTS ELSE 0; PH_REQUESTS/D12C=IF SENDER EQ 'PH' THEN REQUESTS ELSE 0; END TABLE FILE HLD_FINAL PRINT CUSTOMER_ID AS 'Customer' AA_REQUESTS AS 'Requests Received' PH_REQUESTS AS 'PH Requests Received' END [/CODE]
Fernando
Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
June 28, 2018, 04:29 AM
pvijaysai
The output is with page break at sender level and at customer level and out of 4 rows from the final hold file the two column names should differ(AA Requests, PH Requests) for request for requests and responses which will be differentiated by Sender(AA/PH) column.