Professional Documents
Culture Documents
o Site Home
Time Left
1 LAB2 ASSESSMENT
Login Note:
NOTE
o For the MF ID provided for the Lab Assessment, use the below specified
details.
o DATABASE: DBLAB01
o TABLESPACE: Use the below details for Table space name
based on the provided MF ID.
o PLAN:LABPL<yyy>, PACKAGE: LABPK<yyy>.
<yyy> – Denotes last 3 digits of your Lab Assessment MF ID.
The KK online Shopping Company maintains its discount, coupon and order
information in database DISCOUNT_DETAIL, COUPON_DETAIL and
ORDER_DETAIL tables for ease of access and maintenance. To make the team to
calculate final price for each item based on the discounts and coupon codes
develop the below modules:
DB2:
Sample Values:
Sample Values:
6. SPUFI Member Naming Convention: SB62E<yyy>, where <yyy> denotes the
last 3 digits of your TLAB user ID. Member should not contain any commented
queries.
Note: All Char field data to be inserted in CAPITAL letters. NULL denotes null
value to be inserted.
Sample Values:
COBOL:
Note: Please use only the above mentioned DD names. Do not use
COPYBOOKs for declaring output file layout in COBOL program.
o Discount:
o Coupon:
c) Check whether any matching record available in Coupon_Detail table for ordered
Item_Code.
o Extract coupon
percentage
(Coup_Per) from
coupon_code.
Coupon
percentage will be
from 6th to 7th
position of
coupon_code.
o If Disc_Price is
calculated in
previous step, the
use following
formula.
Final_Price =
Disc_Price –
(Disc_Price *
Coup_Per / 100)
o If no discount
available in
Discount_Detail
and no Disc_Price
is calculated, then
use following
formula for
calculating
Final_Price.
Final_Price =
Total_Price –
(Total_Price *
Coup_Per / 100)
5. If Final_Price < 10000 then Free_Home_Del is ‘N’. If Final_Price >= 10000 then
Free_Home_Del is ‘Y’.
7. Write the updated information into output file as per below format
JCL:
a) Compile and execute the above COBOL program. RUNJCL has to be stored in
member with the naming convention "JB12E<YYY>".
SPUFI:
INSTRUCTIONS:
o Follow the below naming convention for the members, where the JCL’s,
SPUFI input’s need to be placed:
Submission draft
Final submission for assignment marking