× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Greetings all,

We are on BPCS 4.02.  I'm trying to create a query/SQL statement to 
replicate FXA210 so that we can extract the list of retired assets from 
last year to export to Excel for our tax people but I'm not quite matching 
the report.  This is what I've got:

SELECT 
        SUBSTRING( ATOGST, 3, 5 ) AS ACCTSORT,
        ATPRIM,
        ATSECN,
        ATDESC,
        ATPHLO,
        DBDTIN,
        RMDTE,
        DBTABL,
        DBLDTE,
        DBCOST,
        DBRESV,
        DBINTF,
        ATOGST 
FROM 
        V40BPCSF.QAT QAT
        LEFT OUTER JOIN V40BPCSF.QUF QUF
        ON 
                QAT.ATASSN = QUF.UFASSN
        LEFT OUTER JOIN V40BPCSF.QDB QDB
        ON 
                QAT.ATASSN = QDB.DBASSN
        LEFT OUTER JOIN V40BPCSF.QRM QRM
        ON 
                QAT.ATASSN = QRM.RMASSN
 
WHERE 
        ATSTAT = '01'
        AND UFSTUS = '01'
        AND SUBSTRING( ATOGST, 3, 5 ) BETWEEN '15110' AND '15312'
        AND DBSTAT = '09'
        AND DBBKN = 00
        AND RMDTE BETWEEN 20060101 AND 20061231 
ORDER BY 
        1, 
        2, 
        3


Does anybody have any ideas on the error of my ways or can describe how 
the report is generating its output?  Thanks.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.