|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 05/12/2009 at 01:44PM PDT, ID: 24402833 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: |
-- cursors
-- PClm Clm
cursor pclm_clm_cur is
SELECT ods_stus_cd as stus_cd, count(*) as count_for_status, sum(clm_tot_paid_amt) as curs_paid_amt,
case ods_stus_cd when 'L' then 1 when 'D' then 2 when 'I' then 3 when 'E' then 4
end as stus_cd_array_num
FROM ods.pclm_clm
WHERE clm_seqno BETWEEN min_seqno AND max_seqno
AND ods_stus_cd IS NOT NULL
AND activity_timestamp >= lookback_date
group by ods_stus_cd
order by case ods_stus_cd when 'L' then 1 when 'D' then 2 when 'I' then 3 when 'E' then 4 end;
pclm_clm_rec pclm_clm_cur%rowtype;
-- Clm Clm
cursor clm_clm_cur is
SELECT ods_stus_cd as stus_cd, count(*) as count_for_status, sum(clm_tot_paid_amt) as curs_paid_amt,
case ods_stus_cd when 'L' then 1 when 'D' then 2 when 'I' then 3 when 'E' then 4 end as stus_cd_array_num
FROM ods.clm_clm
WHERE clm_seqno BETWEEN min_seqno AND max_seqno
AND ods_stus_cd IS NOT NULL
AND activity_timestamp >= lookback_date
group by ods_stus_cd
order by case ods_stus_cd when 'L' then 1 when 'D' then 2 when 'I' then 3 when 'E' then 4 end;
clm_clm_rec clm_clm_cur%rowtype;
-- code
IF srce_sys_cd IN ('038','107','106','109','140','168','177') THEN
for pclm_clm_rec in pclm_clm_cur
loop
UTL_FILE.PUT_LINE(out_file,' Status Code = ' || pclm_clm_rec.stus_cd || ' ' || to_char(pclm_clm_rec.count_for_status,'99,999,990') || ' SRCE_CLM_PAID_AMT = ' || to_char(pclm_clm_rec.curs_paid_amt,'9,999,999,990.00'));
utl_file.put_line(out_file, ' ');
stus_cd_tot(pclm_clm_rec.stus_cd_array_num) := stus_cd_tot(pclm_clm_rec.stus_cd_array_num) + pclm_clm_rec.curs_paid_amt;
if stus_cnt > 0 then
if pclm_clm_rec.stus_cd in ('L','D','E') then
errors_encountered_flg := true;
end if;
end if;
end loop;
ELSE
for clm_clm_rec in clm_clm_cur
loop
UTL_FILE.PUT_LINE(out_file,' Status Code = ' || clm_clm_rec.stus_cd || ' ' || to_char(clm_clm_rec.count_for_status,'99,999,990') || ' SRCE_CLM_PAID_AMT = ' || to_char(clm_clm_rec.curs_paid_amt,'9,999,999,990.00'));
utl_file.put_line(out_file, ' ');
stus_cd_tot(clm_clm_rec.stus_cd_array_num) := stus_cd_tot(clm_clm_rec.stus_cd_array_num) + clm_clm_rec.curs_paid_amt;
if stus_cnt > 0 then
if clm_clm_rec.stus_cd in ('L','D','E') then
errors_encountered_flg := true;
end if;
end if;
end loop;
END IF;
UTL_FILE.FFLUSH(out_file);
|
Advertisement