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.
-*SET ECHO='ALL';
DEFINE FILE AE_DT1
VENDOR_NUMBER/I8 = EDIT(AE_DT1.AE_DT1.FIELD1) ;
INVOICE_NUMBER/I6 = EDIT(AE_DT1.AE_DT1.FIELD2) ;
SCAN_DATE/A8YYMD = EDIT(AE_DT1.AE_DT1.FIELD24, '9999$99$99') ;
END
TABLE FILE AE_DT1
PRINT
AE_DT1.AE_DT1.FIELD5 AS 'INVOICE_DATE'
AE_DT1.AE_DT1.FIELD6 AS 'AMOUNT'
SCAN_DATE
BY VENDOR_NUMBER
BY INVOICE_NUMBER
WHERE (AE_DT1.AE_DT1.FIELD2 EQ '38286');
-*WHERE SCAN_DATE GE '20110201' AND SCAN_DATE LE '20110216'
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS TBL1
END
-RUN
-*?FF TBL1
DEFINE FILE F0411
-* ADDRESS_NUMBER1/I8 = EDIT(ADDRESS_NUMBER) ;
-* INVOICE_NUMBER1/I6 = EDIT(INVOICE_NUMBER) ;
BATCH_DATE/A8YYMD = BATCH_DATE ;
END
TABLE FILE F0411
PRINT
INVOICE_DATE
GROSS_AMOUNT
BATCH_DATE
G_L_DATE
BY ADDRESS_NUMBER
BY INVOICE_NUMBER
WHERE (INVOICE_NUMBER EQ '38286');
ON TABLE HOLD AS TBL2
END
-RUN
JOIN VENDOR_NUMBER AND INVOICE_NUMBER IN TBL1
TO ADDRESS_NUMBER AND INVOICE_NUMBER IN TBL2
END
DEFINE FILE TBL1
DIFF/YYMD = DATECVT(SCAN_DATE,'A8YYMD','YYMD');
DIFF2/YYMD = DATECVT(BATCH_DATE,'A8YYMD','YYMD');
DIFF3/D20 = DATEDIF(DIFF2, DIFF, 'd');
END
?FF TBL1
TABLE FILE TBL1
PRINT VENDOR_NUMBER
INVOICE_NUMBER
INVOICE_DATE
AMOUNT
SCAN_DATE
BATCH_DATE
DIFF
DIFF2
DIFF3
WHERE (INVOICE_NUMBER EQ '38286');
END
-RUN
-EXIT
Without going any further, my first question is: Why the heck are you using THREE different date formats in the same file !! ?? It might be an idea to standardize on YYMD format from the get-go, after which the date comparisons happen in 3 or 4 words of code, not 10 lines worth !