Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP WITH INPUT DATE PARM

Status
Not open for further replies.

Ann28

MIS
Apr 2, 2004
97
0
0
US
Hello everyone -

DB2 UDB 8.2
CR 9

Any help is appreciated!!!

I am trying to create a SP with input parameters.

parms:
?date, ?from high (from DOHIGH to DOSTAN) / from standard (from DOSTAN to DOHIGH)

Data:

Code:
MEMBER_SSN END_DATE BENEFIT_PLAN

---------- -------- ------------

99999999  2003/01/31 DOSTAN      
99999999  2004/01/31 DOHIGH      

99999999  2005/07/31 DOOPTI      

99999999  2005/07/31 DOHIGH

The user enters the date parm, need to select fields from the table where the date = or the next highest to the entered date
Check the BENEFIT_PLAN and if DOSTAN (standard) or DOHIGH (high) then display:

For example, the user entered : '07/2002' , from_standard

Display the change:

HIGH: 99999999 2005/07/31 DOHIGH
STANDARD: 99999999 2003/01/31 DOSTAN

Thanks a lot,
Ann [3eyes]
 
Apologize for the obscure question
Please disregard….
Ann [blush]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top