The following script tells me invalid table name.
I'm confused as this is defined.
I'm trying to count all the claims and money by biller and show a total for everything.
Here is the code.
------CLRK_DAILY8
set verify off
set linesize 80
set pagesize 60
INPUT
ACCEPT EDATE ENTRY_DATE PROMPT "Date: "
COLUMN CLERK FORMAT A10;
COLUMN CLAIMS HEADING "# Bills" FORMAT 9999;
COLUMN AMOUNT FORMAT $999,999.99;
COLUMN ENTRY_DATE NEW_VALUE ED_ID_VAR NOPRINT;
-----BREAK ON CLERK SKIP 1 ON REPORT SKIP2;
BREAK ON REPORT;
COMPUTE COUNT OF 'CLAIMS' ON CLERK;
COMPUTE SUM OF 'AMOUNT' ON CLERK;
-----1COMPUTE SUM OF 'AMOUNT' ON REPORT ON CLERK;
TTITLE CENTER 'Womack Army Medical Center' -
, SKIP CENTER 'TPOCS ITEMIZED BILLING' -
, SKIP CENTER 'TPOCS Clerk Billing Summary Report'-
, SKIP CENTER "BILLING DATE:" ED_ID_VAR SKIP2-
, LEFT 'REPORT DATE: 'TODAYS_DATE RIGHT 'Page:'SQL.PNO SKIP 2;
COLUMN TODAYS_DATE NEW_VALUE TODAYS_DATE NOPRINT;
COLUMN DUMMY NOPRINT;
Spool Test_Claims.txt
select to_char (SYSDATE, 'MM/DD/YY HH24MI') TODAYS_DATE,
at.entry_user AS Clerk,
g.Claim,
g.trans_cd Amount,
g.Dummy
From Audit_Trail at,
Select substr(g.cntrl_no,1,10) Claim,
COUNT(g.cntrl_no),
SUM( DECODE(substr( gl.TRANS_CD,1,2),'01', gl.Debit_Amount, 0)) AMOUNT,
SUM(0) DUMMY
from i_general_ledger g
Group By at.entry_user) g
where substr(at.entry_date,1,9) = to_date('&EDATE','DD-MON-YY')
and at.action = 'READY_TO_POST->POSTED'
and at.key =g.cntrl_no
order by at.entry_user
/
Spool Off
Thanks in advance
I'm confused as this is defined.
I'm trying to count all the claims and money by biller and show a total for everything.
Here is the code.
------CLRK_DAILY8
set verify off
set linesize 80
set pagesize 60
INPUT
ACCEPT EDATE ENTRY_DATE PROMPT "Date: "
COLUMN CLERK FORMAT A10;
COLUMN CLAIMS HEADING "# Bills" FORMAT 9999;
COLUMN AMOUNT FORMAT $999,999.99;
COLUMN ENTRY_DATE NEW_VALUE ED_ID_VAR NOPRINT;
-----BREAK ON CLERK SKIP 1 ON REPORT SKIP2;
BREAK ON REPORT;
COMPUTE COUNT OF 'CLAIMS' ON CLERK;
COMPUTE SUM OF 'AMOUNT' ON CLERK;
-----1COMPUTE SUM OF 'AMOUNT' ON REPORT ON CLERK;
TTITLE CENTER 'Womack Army Medical Center' -
, SKIP CENTER 'TPOCS ITEMIZED BILLING' -
, SKIP CENTER 'TPOCS Clerk Billing Summary Report'-
, SKIP CENTER "BILLING DATE:" ED_ID_VAR SKIP2-
, LEFT 'REPORT DATE: 'TODAYS_DATE RIGHT 'Page:'SQL.PNO SKIP 2;
COLUMN TODAYS_DATE NEW_VALUE TODAYS_DATE NOPRINT;
COLUMN DUMMY NOPRINT;
Spool Test_Claims.txt
select to_char (SYSDATE, 'MM/DD/YY HH24MI') TODAYS_DATE,
at.entry_user AS Clerk,
g.Claim,
g.trans_cd Amount,
g.Dummy
From Audit_Trail at,
Select substr(g.cntrl_no,1,10) Claim,
COUNT(g.cntrl_no),
SUM( DECODE(substr( gl.TRANS_CD,1,2),'01', gl.Debit_Amount, 0)) AMOUNT,
SUM(0) DUMMY
from i_general_ledger g
Group By at.entry_user) g
where substr(at.entry_date,1,9) = to_date('&EDATE','DD-MON-YY')
and at.action = 'READY_TO_POST->POSTED'
and at.key =g.cntrl_no
order by at.entry_user
/
Spool Off
Thanks in advance