Hi,
I have created 2 Hold Files which has the same concatenated Key..(Bank name+Currency+Account) All charcters...Now i need to display data in the final report from the 2 hold files...
So display report in the sorted Key i have and first row of data from the first hold file and 2nd row from the second hold file..which has same key combination record...
What i am doing is after the Hold file i created a Full outer Join with the Key then tried to created the report..But it seems not working...
This is my code...
First Hold File
----------------------
TABLE FILE H_MT940F
PRINT
'H_MT940F.H_MT940F.CORR_INSTITUTION_NAME' AS 'BANK NAME'
'H_MT940F.H_MT940F.X_FIN_CCY' AS 'CURRENCY'
'H_MT940F.H_MT940F.MF25' AS 'ACCOUNT'
'H_MT940F.H_MT940F.MESG_TYPE' AS 'MESG TYPE'
'H_MT940F.H_MT940F.VALUE' AS 'COUNT'
BY TOTAL COMPUTE KEY_MT940F/A500 = H_MT940F.H_MT940F.CORR_INSTITUTION_NAME || H_MT940F.H_MT940F.X_FIN_CCY || H_MT940F.H_MT940F.MF25 ; NOPRINT
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS H_940F FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
Second Hold File
-----------------
TABLE FILE H_MT942F
PRINT
'H_MT942F.H_MT942F.CORR_INSTITUTION_NAME' AS 'BANK NAME'
'H_MT942F.H_MT942F.X_FIN_CCY' AS 'CURRENCY'
'H_MT942F.H_MT942F.MF25' AS 'ACCOUNT'
'H_MT942F.H_MT942F.MESG_TYPE' AS 'MESG TYPE'
'H_MT942F.H_MT942F.VALUE' AS 'COUNT''
BY TOTAL COMPUTE KEY_MT942F/A500 = H_MT942F.H_MT942F.CORR_INSTITUTION_NAME || H_MT942F.H_MT942F.X_FIN_CCY || H_MT942F.H_MT942F.MF25; NOPRINT
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS H_942F FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
Then Do the Join
JOIN
H_940F.H_940F.KEY_MT940F IN H_940F TO MULTIPLE H_942F.H_942F.KEY_MT942F
IN H_942F TAG J7 AS J7
END
The have to have the final report
TABLE FILE H_940F
PRINT
'H_940F.H_940F.CORR_INSTITUTION_NAME'
'H_940F.H_940F.X_FIN_CCY'
'H_940F.H_940F.MF25'
'H_940F.H_940F.MESG_TYPE'
'H_940F.H_940F.VALUE'
BY 'H_940F.H_940F.KEY_MT940F'
My output data should be like
ABN AMRO BANK N.V. EUR 568096169 940 14
ABN AMRO BANK N.V. EUR 568096169 942 07
One from each hold file categorized by the First 3 columns...
I tried with Match but somehow i cannot open with match file with this Hold file..I am getting this Hold file from around 4 preceiding match files..
Please update me what to be done to make this work...
WebFOCUS 76
Windows
all formats