t1machado
October 14th, 2008, 12:28 PM
Hi Everyone,
I've just started working with Mornarch/Datawatch and am having a problem creating a model for a report. I have this 11,000+ page report that I need to strip out 4 or so pages towards the top of the report and then the last 20 or so pages (length is variable so I can't trap any fixed amount of pages, etc). So far I've been able to get all the data I need, but the problem is I can't get rid of the data I DONT want. Currently I break out the reports by type of report (which i'll explain below), but the problem is that I get all the junk from the top of the report to the sections I want, then the data I want, then the bulk of the report I dont want, and finally the last 20 pages broken out correctly.
For us visual learners:
Report1: Top of report data I dont want + first correct report
Report2: second correct report
Report3: third correct report
Report4: fourth correct report + 1100 pages of data I dont want
Report5: 5th correct report (start of bottom 20 pages I want)
Report6: 6th correct report
Report7: 7th correct report
Report8: 8th correct report
So it looks like I need to find a better way to break the pages out to eliminate the data I dont want.
Below is an example of the first page of the report (data I dont want) (numbers and text changed for confidentality):
1 UGAP110 UNIVERSITY OF xxxx PAGE: 1
RUN ON: 10/04/08 AT 04:51:42 xxxx GENERAL LEDGER SEPTEMBER
xxxx CURRENT MONTH TRANSACTIONS
FOR THE PERIOD 09/01/08 - 09/30/08
ACCOUNT: 555555 INTERFUND CASH ACCOUNT Assets - Cash
DOCUMENT TRANSACTION DOCUMENT RULE/
FUND DESCRIPTION REFERENCE DATE NUMBER TYPE DEBIT CREDIT BALANCE
-------------------------------------------- ----------- ----------- ---------- --------- ----------------------------------------------------------
55555Z BALANCE FORWARD .00 5,555.55
55555Z CURRENT MONTHS ACTIVITY .00 555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z .00 5,555.55 5,555.55CR
55555Z BALANCE FORWARD .00 555,555.55
55555Z CURRENT MONTHS ACTIVITY 55,555.55 555,555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z 55,555.55 555,555.55 555,555.55CR
55555Z BALANCE FORWARD 55,555.55 .00
55555Z CURRENT MONTHS ACTIVITY 5,555.55 .00
------------------ ------------------ ------------------
TOTAL 110000-55555Z 55,555.55 .00 55,555.55
55555Z BALANCE FORWARD 555,555.55 .00
55555Z CURRENT MONTHS ACTIVITY 55,555.55 5,555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z 555,555.55 5,555.55 555,555.55
------------------ ------------------ ------------------
TOTAL 110000 555,555.55 555,555.55 555,555.55CR
Here is the first section of desired data:
1 UGAP110 UNIVERSITY OF xxxx PAGE: 39
RUN ON: 10/04/08 AT 04:51:42 xxxx GENERAL LEDGER SEPTEMBER
zzzz ACCOUNT SUMMARY
FOR THE PERIOD 09/01/08 - 09/30/08
ACCSUM
Assets
CURRENT FISCAL
ACCOUNT TITLE MONTH YEAR TO DATE
------------------ ------------------
555555 INTERFUND CASH ACCOUNT 55,555.55CR 555,555.55CR
555555 PETTY CASH FUND .00 555.55
------------------ ------------------
TOTAL Assets 55,555.55CR 555,555.55CR
And the second piece of data I dont want is identical in structure to the first piece as well as the bottom 20 pages are identical in structure to the first piece of data I do want. The only difference from the first piece of wanted data to the second is that "zzzz ACCOUNT SUMMARY" (in the header) is "xxxx ACCOUNT SUMMARY", but other than that the header is exactly the same in both desired data pieces.
Some traps i've employed:
* trap for "ACCOUNT SUMMARY" and capture the "xxxx" or "zzzz" part (used for the report title)
* trap for "ACCSUM" in header
* trap for "Assets" (well really the trap is any alpha character where the "A" is in assets are the reports I want only are the ones that have text in that position) - this is what I use for my report breaks.
* my details view consists of capturing the account, title, and both decimal points (notice how they are differently aligned in the two examples).
Again I capture all data correctly and MY TABLE VIEW IS EXACLY HOW I WANT IT but the report does not come out as I would like it.
Any help would be greatly appreciated. Let me know if you need more information.
Thank you,
Tom
I've just started working with Mornarch/Datawatch and am having a problem creating a model for a report. I have this 11,000+ page report that I need to strip out 4 or so pages towards the top of the report and then the last 20 or so pages (length is variable so I can't trap any fixed amount of pages, etc). So far I've been able to get all the data I need, but the problem is I can't get rid of the data I DONT want. Currently I break out the reports by type of report (which i'll explain below), but the problem is that I get all the junk from the top of the report to the sections I want, then the data I want, then the bulk of the report I dont want, and finally the last 20 pages broken out correctly.
For us visual learners:
Report1: Top of report data I dont want + first correct report
Report2: second correct report
Report3: third correct report
Report4: fourth correct report + 1100 pages of data I dont want
Report5: 5th correct report (start of bottom 20 pages I want)
Report6: 6th correct report
Report7: 7th correct report
Report8: 8th correct report
So it looks like I need to find a better way to break the pages out to eliminate the data I dont want.
Below is an example of the first page of the report (data I dont want) (numbers and text changed for confidentality):
1 UGAP110 UNIVERSITY OF xxxx PAGE: 1
RUN ON: 10/04/08 AT 04:51:42 xxxx GENERAL LEDGER SEPTEMBER
xxxx CURRENT MONTH TRANSACTIONS
FOR THE PERIOD 09/01/08 - 09/30/08
ACCOUNT: 555555 INTERFUND CASH ACCOUNT Assets - Cash
DOCUMENT TRANSACTION DOCUMENT RULE/
FUND DESCRIPTION REFERENCE DATE NUMBER TYPE DEBIT CREDIT BALANCE
-------------------------------------------- ----------- ----------- ---------- --------- ----------------------------------------------------------
55555Z BALANCE FORWARD .00 5,555.55
55555Z CURRENT MONTHS ACTIVITY .00 555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z .00 5,555.55 5,555.55CR
55555Z BALANCE FORWARD .00 555,555.55
55555Z CURRENT MONTHS ACTIVITY 55,555.55 555,555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z 55,555.55 555,555.55 555,555.55CR
55555Z BALANCE FORWARD 55,555.55 .00
55555Z CURRENT MONTHS ACTIVITY 5,555.55 .00
------------------ ------------------ ------------------
TOTAL 110000-55555Z 55,555.55 .00 55,555.55
55555Z BALANCE FORWARD 555,555.55 .00
55555Z CURRENT MONTHS ACTIVITY 55,555.55 5,555.55
------------------ ------------------ ------------------
TOTAL 110000-55555Z 555,555.55 5,555.55 555,555.55
------------------ ------------------ ------------------
TOTAL 110000 555,555.55 555,555.55 555,555.55CR
Here is the first section of desired data:
1 UGAP110 UNIVERSITY OF xxxx PAGE: 39
RUN ON: 10/04/08 AT 04:51:42 xxxx GENERAL LEDGER SEPTEMBER
zzzz ACCOUNT SUMMARY
FOR THE PERIOD 09/01/08 - 09/30/08
ACCSUM
Assets
CURRENT FISCAL
ACCOUNT TITLE MONTH YEAR TO DATE
------------------ ------------------
555555 INTERFUND CASH ACCOUNT 55,555.55CR 555,555.55CR
555555 PETTY CASH FUND .00 555.55
------------------ ------------------
TOTAL Assets 55,555.55CR 555,555.55CR
And the second piece of data I dont want is identical in structure to the first piece as well as the bottom 20 pages are identical in structure to the first piece of data I do want. The only difference from the first piece of wanted data to the second is that "zzzz ACCOUNT SUMMARY" (in the header) is "xxxx ACCOUNT SUMMARY", but other than that the header is exactly the same in both desired data pieces.
Some traps i've employed:
* trap for "ACCOUNT SUMMARY" and capture the "xxxx" or "zzzz" part (used for the report title)
* trap for "ACCSUM" in header
* trap for "Assets" (well really the trap is any alpha character where the "A" is in assets are the reports I want only are the ones that have text in that position) - this is what I use for my report breaks.
* my details view consists of capturing the account, title, and both decimal points (notice how they are differently aligned in the two examples).
Again I capture all data correctly and MY TABLE VIEW IS EXACLY HOW I WANT IT but the report does not come out as I would like it.
Any help would be greatly appreciated. Let me know if you need more information.
Thank you,
Tom