Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

36
Data Mapping Project: RSSP Franchise Service Plan Automation DEVELOPED BY APPROVED BY NAME Jon Fortman Tim Reagan

Transcript of Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

Page 1: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

Data Mapping

Project: RSSP Franchise Service Plan Automation

DEVELOPED BY APPROVED BY

NAME Jon Fortman Tim Reagan

ROLE SME/Developer Asst. Dir.

Page 2: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

VASFRNSR – Ab Initio ETL – module responsible for extracting from fran sql server DB and outputting to a transient flat file.

RPR6620F — NEW 010118 VERSION OF RPR6620 (from 1999 ANSO replacements project) – module responsible for taking in output from Ab Initio module and performing any calculations/DB2 lookups needed to fill in needed data that is not on fran sql server DB.

RPR6621F — NEW 010118 VERSION OF RPR6621 (from 1999 ANSO replacements project) — module responsible for formatting data into the 010118 DR format represented already by pre-existing copybook CMNTIS.COBCOPY.CP2(SCSALE) [the ‘B’ type rec series]

RPR6622F — NEW 010118 VERSION OF RPR6622 (from 1999 ANSO replacements project) – module responsible for creation of the ‘A’ rec and the totals that are on the ‘A’ rec on the 010118 DR and for figuring out what 010118 DR to use for placing the recs output from RPR6621F.

There are ~175 fields that have to be examined. Each field will be assigned a disposition from these choices:

1. Value comes from sql server field…program id that will process field2. Value comes from non-sql server source…program id that will process field and value program id will assign3. N/A: value assigned as blank or zero…program id that will process field4. Value will be derived based on the value of an sql server field…Program id that will process field5. Value will be derived based on a pre-existing calculation that will be incorporated/translated from a pre-

existing program

NOTE: The “Program ID” reference in the disposition definitions above refers to processing post Ab Initio ETL processing; the Ab Initio process will not be responsible for creating the 010118 DR format. Ab Initio program will be responsible for extracting needed fields from the fran sql server and placing them in a data store for input to RPR6620F which will extract from the data store loaded by the Ab Initio graph and output a transient file for input to RPR6621F. RPR6621F and RPR6622F will then be responsible for creating the 010118 DR format below.

FROM HERE TO THE START OF THE REPLACEMENTS FUNCTIONALITY RECORD SET [‘C’ type recs] IS FOR SALES/REFUNDS. WE’RE MAPPING ‘A’ ‘B’ ‘BB’ ‘BD’ ‘BE’ ‘BF’ ‘BFA’ RECS ONLY. **************************************************************** * SERVICE CONTRACTS SYSTEM * * FILE LAYOUT FOR THE SALES ENTRY SYSTEM VSAM SALES FILE * * C O B O L - COPYBOOK * * * * S C S A L E * * * * DSN = IN5.RPR.SALE.TICKETS * * DSN = IN5.TRPR.SALE.TICKETS *

Page 3: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

* * * DDNAME = RPRSALE * **************************************************************** 03 :SALE:-RECORD PIC X(500). 03 :SALE:-RECORD-INIT REDEFINES :SALE:-RECORD.

05 :SALE:-REC-KEY PIC X(34). 05 :SALE:-REC-KEY-INIT REDEFINES :SALE:-REC-KEY.

10 :SALE:-DAILY-RPT-DT PIC 9(8). NON SQL SERVER...RPR6622F 10 F REDEFINES :SALE:-DAILY-RPT-DT. 15 :SALE:-DAILY-RPT-MM PIC 9(2). 15 :SALE:-DAILY-RPT-DD PIC 9(2). 15 :SALE:-DAILY-RPT-CC PIC 9(2). 15 :SALE:-DAILY-RPT-YY PIC 9(2).

10 :SALE:-REC-ALT-KEY. 15 :SALE:-STORE-NBR PIC X(6). NON SQL SERVER...RPR6622F SET AS ‘010118’ 15 :SALE:-REC-TYPE1 PIC X(2). NON SQL SERVER...RPR6622F SET AS ‘A ’ OR ‘B ’

15 :SALE:-TICKET-NBR PIC 9(6). NON SQL SERVER...RPR6621F SET USING NEXT AVAIL TKT# BUCKET ON VSAM CONTROL FILE: IN5.RPR.CONTROL

15 :SALE:-ISCT-NBR REDEFINES :SALE:-TICKET-NBR PIC 9(6).

10 :SALE:-REC-TYPE2 PIC X(2). NON SQL SERVER...RPR6621F SET AS ‘B ‘,‘D ‘, OR ‘F ‘ 10 :SALE:-REC-TYPE2-SEQ-NBR PIC S9(4) BINARY. NON SQL SERVER...RPR6621F SET AS 1 10 :SALE:-REC-TYPE3 PIC X(2). NON SQL SERVER...RPR6621F SET AS ‘A ‘ 10 :SALE:-REC-TYPE3-SEQ-NBR PIC S9(4) BINARY. NON SQL SERVER...RPR6621F SET AS 1 10 :SALE:-REC-TYPE4 PIC X(2). NON SQL SERVER...RPR6621F SET AS BLANK 10 :SALE:-REC-TYPE4-SEQ-NBR PIC S9(4) BINARY. NON SQL SERVER...RPR6621F SET AS ZERO 05 :SALE:-DATA PIC X(466).

**************************************************************** * RECORD A TOTALS RECORD 1 PER STORE / PER DAY * **************************************************************** 05 :SALE:-RECORD-A REDEFINES :SALE:-DATA. 10 :SALE:-DRPT-XMIT-DT PIC 9(8). RPR6602...010118 DR NIGHTLY PROCESSING SET AS SYSTEM DATE 10 F REDEFINES :SALE:-DRPT-XMIT-DT. 15 :SALE:-DRPT-XMIT-MM PIC 9(2). 15 :SALE:-DRPT-XMIT-DD PIC 9(2). 15 :SALE:-DRPT-XMIT-CC PIC 9(2). 15 :SALE:-DRPT-XMIT-YY PIC 9(2).

10 :SALE:-DRPT-STATUS PIC X(1). NON SQL SERVER...RPR6622F

Page 4: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

88 :SALE:-DAILY-REPORT-COMPLETE VALUE 'C'. 88 :SALE:-DR-BATCHED-FOR-PRINTING VALUE 'B'. 88 :SALE:-DR-MARKED-FOR-DELETION VALUE 'D'. 88 :SALE:-DR-HAS-INCOMP-TICKETS VALUE 'I'. 88 :SALE:-DR-NEEDS-EDIT-LISTING VALUE 'O'. 88 :SALE:-DR-UNBAL-OR-INCOMPLETE VALUE 'P'. 88 :SALE:-CC-MASK-HASH-PROBLEM VALUE 'M'.

10 :SALE:-DRPT-SLTKT-QTY PIC S9(5) COMP-3. NON SQL SERVER...RPR6622F CALC 10 :SALE:-DRPT-TRSF-CHK-AMT PIC S9(9)V99 COMP-3. NON SQL SERVER...RPR6622F SET TO ZERO 10 :SALE:-DRPT-NET-INCM-AMT PIC S9(9)V99 COMP-3. NON SQL SERVER...RPR6622F CALC 10 :SALE:-DRPT-CASH-DEP-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CHK-DEP-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CRCRD-DEP-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-CASH-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-CHK-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-CRCRD-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-COMCHG-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-LEAS-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-RFND-CHK-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-VOID-RFND-CHK-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-BAD-DEBT-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 :SALE:-DRPT-CALC-ISCT-AMT PIC S9(9)V99 COMP-3. NON SQL SERVER...RPR6622F CALC 10 :SALE:-DRPT-CALC-CR-MEMO-AMT PIC S9(9)V99 COMP-3. n/a RPR6622F SET TO ZERO 10 F PIC X(364).

**************************************************************** * RECORD B SALES TICKET RECORD MANY PER STORE / PER DAY * **************************************************************** 05 :SALE:-RECORD-B REDEFINES :SALE:-DATA. 10 :SALE:-SLTKT-COMPLETE-IND PIC X(1). NON SQL SERVER...RPR6621F 88 :SALE:-TICKET-COMPLETED VALUE 'Y'. 88 :SALE:-TICKET-NOT-COMPLETED VALUE 'N'.

10 :SALE:-SLTKT-DT PIC 9(8). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Trans Date Time] RPR6621F 10 F REDEFINES :SALE:-SLTKT-DT. 15 :SALE:-SLTKT-MM PIC 9(2). 15 :SALE:-SLTKT-DD PIC 9(2). 15 :SALE:-SLTKT-CC PIC 9(2). 15 :SALE:-SLTKT-YY PIC 9(2).

10 :SALE:-SLTKT-TM PIC 9(6). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Trans Date Time] RPR6621F

Page 5: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 F REDEFINES :SALE:-SLTKT-TM. 15 :SALE:-SLTKT-HH PIC 9(2). 15 :SALE:-SLTKT-MN PIC 9(2). 15 :SALE:-SLTKT-SS PIC 9(2).

10 :SALE:-SLMKR-SALES-ID PIC X(3). RPR6621F SET BASED ON SQL SERVER field: dbo_vw_POSTicketLineItemDetailView.[POS Trans Type], ‘S’=’FRS’ ‘R’=’FRR’.

10 :SALE:-SLMKR-ID PIC X(9). NON SQL SERVER...RPR6621F SET AS ZERO 10 :SALE:-OPER-ID PIC X(3). NON SQL SERVER...RPR6621F SET AS ‘21A’

10 :SALE:-SLTKT-TRAN-TYP-CD PIC X(1). RPR6621F SET AS ‘F’ 88 :SALE:-COMPANY-TRAN VALUE 'C'. 88 :SALE:-FRANCHISE-TRAN VALUE 'F'. 88 :SALE:-LAB-TRAN VALUE 'L'. 88 :SALE:-REPLACEMENT-TRAN VALUE 'R'. 88 :SALE:-MISCELLANEOUS-TRAN VALUE 'M'.

10 :SALE:-FRNCHS-STR-NBR PIC X(6). SQL SERVER FIELD dbo_vw_POSTicketLineItemDetailView.[POS StoreID], RPR6621F

10 :SALE:-SLTKT-OSSRVC-SUBTOT-AMT PIC S9(9)V99 COMP-3. n/a RPR6621F SET TO ZERO

10 :SALE:-ZONE-NBR PIC 9(1). n/a RPR6621F SET TO ZERO 88 :SALE:-ZONE-AUTH-NEEDED VALUE 4 THRU 5.

10 :SALE:-ZONE-PCT PIC S9(3) COMP-3. n/a RPR6621F SET TO ZERO 10 :SALE:-SVP-TOTL-ZNE-SRCHRG-AMT PIC S9(9)V99 COMP-3. n/a RPR6621F SET TO ZERO 10 :SALE:-SLTKT-SUBTOT-AMT PIC S9(9)V99 COMP-3. RPR6621F CALC BASED ON SQL SERVER FIELD

dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

10 :SALE:-SLTKT-TAX-AMT PIC S9(9)V99 COMP-3. n/a RPR6621F SET TO ZERO 10 :SALE:-SLTKT-TOTL-AMT PIC S9(9)V99 COMP-3. RPR6621F CALC BASED ON SQL SERVER FIELD

dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

10 :SALE:-SLTKT-TNDR-AMT PIC S9(9)V99 COMP-3. RPR6621F CALC BASED ON SQL SERVER FIELDdbo_vw_POSTicketLineItemDetailView.[Extended Price]

10 :SALE:-SLTKT-TAX-STATE-ID PIC X(2). SQL SERVER…SAME AS CUST STATE IDdbo_vw_POSTicketLineItemDetailView.State

10 :SALE:-CUST-TAX-XMP-ID PIC X(18). N/A BLANK OUT…RPR6621F

Page 6: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-LAB-TYP-CD PIC X(3). N/A BLANK OUT…RPR6621F 10 :SALE:-SLTKT-NBR-LINES PIC S9(3) COMP-3. NON SQL SERVER...RPR6621F CALC USING BREAK LOGIC 10 :SALE:-SLTKT-NBR-PYMT PIC S9(3) COMP-3. NON SQL SERVER...RPR6621F…set as 1 10 :SALE:-SLTKT-NBR-GOOD-PYMT PIC S9(3) COMP-3. NON SQL SERVER...RPR6621F SET as 1 10 :SALE:-SLTKT-NBR-OSSRVC PIC S9(3) COMP-3. N/A ZERO OUT...RPR6621F 10 :SALE:-SLTKT-NBR-DSCNT PIC S9(3) COMP-3. NON SQL SERVER...RPR6621F CALC WITHIN BREAK LOGIC

THAT CHECKS SQL SERVER FIELD dbo_vw_POSTicketLineItemDetailView.[Discount Amt]. For every line of the tkt that has this field > 0.00 increment the nbr of discounts.

10 :SALE:-SLTKT-DSCNT-PCT PIC S9(3) COMP-3. tkt level discount%. N/A…RPRP6621F ZERO OUT 10 :SALE:-SLTKT-NBR-RFNDS PIC S9(3) COMP-3. N/A ZERO OUT…RPR6621F…FIELD USED MOSTLY FOR CICS

SCREEN CONTROL

10 :SALE:-SVP-CMNT-LN1-DESC PIC X(50). WILL BE USED BY RPR6620F, RPR6621F, OR RPR6622F to convey a problem with a tkt. the field will be viewable on the 010118 cics summary screen for agent review and correction.

10 :SALE:-SEND-CUST-TAXMP-FRM-IND PIC X(1). N/A…RPR6621F…SET TO ‘N’ 88 :SALE:-SEND-TAX-EXEMPT-FORM VALUE 'Y'. 88 :SALE:-NO-TAX-EXEMPT-FORM VALUE 'N'.

10 :SALE:-ALT-STR-NBR PIC X(6). N/A…RPR6621F…BLANK OUT

10 :SALE:-SLTKT-COMCHG-IND PIC X(1). N/A…RPR6621F…SET TO ‘N’ 88 :SALE:-HAVE-COMMERCIAL-CHG VALUE 'Y'. 88 :SALE:-NO-COMMERCIAL-CHG VALUE 'N'.

10 :SALE:-SLTKT-BAD-DEBT-IND PIC X(1). N/A…RPR6621F…SET TO ‘N’ 88 :SALE:-HAVE-BAD-DEBT VALUE 'Y'. 88 :SALE:-NO-BAD-DEBT VALUE 'N'.

10 :SALE:-SLTKT-PYMT-ISCT-IND PIC X(1). N/A…RPR6621F…SET TO ‘N’ 88 :SALE:-HAVE-ISCT VALUE 'Y'. 88 :SALE:-NO-ISCT VALUE 'N'.

10 :SALE:-SLTKT-NBR-SALES PIC S9(3) COMP-3. N/A ZERO OUT…RPR6621F…FIELD USED MOSTLY FOR CICS SCREEN CONTROL

10 :SALE:-SHOP-NBR PIC X(6). N/A…RPR6621F…BLANK OUT

10 :SALE:-SHOP-PHONE-NBR PIC X(12). N/A…RPR6621F…BLANK OUT 10 F REDEFINES :SALE:-SHOP-PHONE-NBR. 15 :SALE:-SHOP-AREA-CD PIC X(3). 15 :SALE:-SHOP-EXCHG PIC X(3). 15 :SALE:-SHOP-STATION-ID PIC X(4). 15 F PIC X(2).

Page 7: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-FRAN-ISCT-IND PIC X(1). 88 :SALE:-HAVE-FRAN-ISCT VALUE 'Y'. 88 :SALE:-NO-FRAN-ISCT VALUE 'N'. see below:

IF ‘FRR’ [REFUND] SET TO ‘Y’, OTHERWISE LEAVE BLANK [TO STAY CONSISTENT WITH CICS PROGRAM SC53P53 WHICH SETS IT TO EITHER ‘Y’ OR BLANK]…RPR6621F will determine sale or refund by looking at sql server field: dbo_vw_POSTicketLineItemDetailView.[POS Trans Type],

IN CICS PROGRAM: SC53P53 IF COMM-FRANCHISE-TRAN

[01217] IF COMM-SALE-RFND-IND = 'R' [01218] * these fields are no longer entered on the map via the business [01219] * user. they are harded per business rules set forth during [01220] * the work request: RSSP Franchise Pricing Model Change [01221] MOVE 'Y' TO COMM-FRAN-ISCT-IND [01222] MOVE 'N' TO COMM-FRAN-ISCT-TYPE [01223] END-IF

10 :SALE:-FRAN-ISCT-TYPE PIC X(1). 88 :SALE:-NEW-FRAN-PERCENTAGE VALUE 'N'. 88 :SALE:-OLD-FRAN-PERCENTAGE VALUE 'O'.

IF ‘FRR’ [REFUND] SET TO ‘N’, OTHERWISE LEAVE BLANK [TO STAY CONSISTENT WITH CICS PROGRAM SC53P53 WHICH SETS IT TO EITHER ‘N’ OR BLANK]…RPR6621F will determine sale or refund by looking at sql server field: dbo_vw_POSTicketLineItemDetailView.[POS Trans Type],

IN CICS PROGRAM: SC53P53 IF COMM-FRANCHISE-TRAN

[01217] IF COMM-SALE-RFND-IND = 'R' [01218] * these fields are no longer entered on the map via the business [01219] * user. they are harded per business rules set forth during [01220] * the work request: RSSP Franchise Pricing Model Change [01222] MOVE 'N' TO COMM-FRAN-ISCT-TYPE [01223] END-IF

10 :SALE:-REASON-FOR-REFUND PIC X(30). RPR6621F SET TO ‘RETURNED’ IN ACCORDANCE WITH WHAT THE CICS PROGRAMS DO TODAY

10 :SALE:-SLTKT-SANWA-IND PIC X(1). N/A…RPR6621F SET TO ‘N’ 88 :SALE:-HAVE-SANWA VALUE 'Y'. 88 :SALE:-NO-SANWA VALUE 'N'.

Page 8: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-ORG-FRAN-SLTKT-NBR PIC X(8). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Ticket Number]…RPR6621F

10 :SALE:-ORG-FRAN-SLTKT-DT PIC 9(8). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Trans Date Time]…RPR6621F

10 :SALE:-CUST-TYP-CD PIC X(3). N/A…RPR6621F SET TO BLANK 10 F PIC X(221).

N/A tickets harvested from fran sql server DB are assumed to always be non-voided tickets. *---------------------------------------------------------------- * TYPE 'BA ' - SALES TICKET RECORD – VOID *---------------------------------------------------------------- 05 :SALE:-RECORD-BA REDEFINES :SALE:-DATA. 10 :SALE:-SLTKT-VOID-DT PIC 9(8). 10 F REDEFINES :SALE:-SLTKT-VOID-DT. 15 :SALE:-SLTKT-VOID-MM PIC 9(2). 15 :SALE:-SLTKT-VOID-DD PIC 9(2). 15 :SALE:-SLTKT-VOID-CC PIC 9(2). 15 :SALE:-SLTKT-VOID-YY PIC 9(2).

10 :SALE:-SLTKT-VOID-TM PIC 9(6). 10 F REDEFINES :SALE:-SLTKT-VOID-TM. 15 :SALE:-SLTKT-VOID-HH PIC 9(2). 15 :SALE:-SLTKT-VOID-MN PIC 9(2). 15 :SALE:-SLTKT-VOID-SS PIC 9(2).

10 :SALE:-SLTKT-VOID-OPR PIC X(3).

10 :SALE:-SLTKT-VOID-IND PIC X(1). 88 :SALE:-TICKET-VOIDED VALUE 'Y'. 88 :SALE:-TICKET-NOT-VOIDED VALUE 'N'.

10 :SALE:-SLTKT-VOID-CD PIC X(1). 88 :SALE:-TRAINING-SALE-VOID VALUE 'T'. 88 :SALE:-POS-SALE-VOID VALUE 'P'.

10 F PIC X(447).

*---------------------------------------------------------------- * TYPE 'BB ' - CUSTOMER INFORMATION *---------------------------------------------------------------- 05 :SALE:-RECORD-BB REDEFINES :SALE:-DATA.

Page 9: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-CUST-NM PIC X(30). RPR6621F…concatenate sql server fields: dbo_vw_POSTicketLineItemDetailView.LastName, dbo_vw_POSTicketLineItemDetailView.FirstName – if these fields are blank, use sql server field: dbo_vw_POSTicketLineItemDetailView.[Company Name]

10 :SALE:-CUST-LINE1-ADDR PIC X(30). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.[Address 1]

10 :SALE:-CUST-LINE2-ADDR PIC X(30). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.[Address 2]

10 :SALE:-CUST-CITY-NM PIC X(21). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.City

10 :SALE:-CUST-STATE-ID PIC X(2). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.State

10 :SALE:-CUST-CNTRY-CD PIC X(2). RPR6621F…set as ‘US’ per Jeremy who said no stores outside of US sell service plans that are posted to the fran sql server DB 88 :SALE:-BB-UNITED-STATES VALUE 'US'. 88 :SALE:-BB-CANADA VALUE 'CA'.

10 :SALE:-CUST-POSTL-CD PIC X(11). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.Zip

10 :SALE:-CUST-PHONE-NBR PIC X(12). RPR6621F…sql server field: dbo_vw_POSTicketLineItemDetailView.Telephone

10 :SALE:-NON-FOREIGN-PHONE REDEFINES :SALE:-CUST-PHONE-NBR. 15 :SALE:-CUST-AREA-CD PIC X(3). 15 :SALE:-CUST-EXCHG PIC X(3). 15 :SALE:-CUST-STATION-ID PIC X(4). 15 F PIC X(2).

10 :SALE:-SVP-CNTCT-NM PIC X(30). N/A…RPR6621F SET AS BLANK

10 :SALE:-BB-SCPHONE-KEY. N/A…this is pertinent only to the convenience auto-fill phone/cust addr file that an agent can use when doing an 010118 tkt via the CICS screens…RPR6621F SET AS BLANK 15 :SALE:-BB-PHON-CUST-STATION-ID PIC X(4). 15 :SALE:-BB-ADD-DATE-TIME PIC X(14). 15 :SALE:-BB-ADD-OPER-ID PIC X(3). 10 F PIC X(277).

Page 10: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

N/A commercial charge service plan transactions are not performed by franchise stores *---------------------------------------------------------------- * TYPE 'BC ' - CUSTOMER BILLING INFORMATION *---------------------------------------------------------------- 05 :SALE:-RECORD-BC REDEFINES :SALE:-DATA. 10 :SALE:-BILL-CUST-NM PIC X(30). 10 :SALE:-BILL-CUST-LN1-ADDR PIC X(30). 10 :SALE:-BILL-CUST-LN2-ADDR PIC X(30). 10 :SALE:-BILL-CUST-CITY-NM PIC X(21). 10 :SALE:-BILL-CUST-STATE-ID PIC X(2). 10 :SALE:-BILL-CUST-CNTRY-CD PIC X(2). 88 :SALE:-BC-UNITED-STATES VALUE 'US'. 88 :SALE:-BC-CANADA VALUE 'CA'. 10 :SALE:-BILL-CUST-POSTL-CD PIC X(11). 10 :SALE:-BILL-CUST-ATTN-NM PIC X(30).

10 :SALE:-BILL-CUST-PHONE-NBR PIC X(12). 10 :SALE:-BILL-NON-FOREIGN-PHONE REDEFINES :SALE:-BILL-CUST-PHONE-NBR. 15 :SALE:-BILL-CUST-AREA-CD PIC X(3). 15 :SALE:-BILL-CUST-EXCHG PIC X(3). 15 :SALE:-BILL-CUST-STATION-ID PIC X(4). 15 F PIC X(2).

10 F PIC X(298).

*---------------------------------------------------------------- * TYPE 'BD ' - SALES TICKET RECORD - PAY TYPE *---------------------------------------------------------------- 05 :SALE:-RECORD-BD REDEFINES :SALE:-DATA. 10 :SALE:-PYMT-DELETED-FLAG PIC X(1). RPR6621F…SET AS ‘N’ 88 :SALE:-PAYMENT-DELETED VALUE 'Y'. 88 :SALE:-PAYMENT-NOT-DELETED VALUE 'N'.

10 :SALE:-SLTKT-PYMT-CD PIC X(1). RPR6621F…SET AS ‘C’. THIS IS THE ONLY PAYMENT TYPE DONE VIA 010118 DR TKTS FOR FRANCHISE TRANSACTIONS. 88 :SALE:-CASH VALUE '1'. 88 :SALE:-CHECK VALUE '2'. 88 :SALE:-CREDIT-CARD VALUE '3'. 88 :SALE:-COMMERCIAL-CHARGE VALUE '4'. 88 :SALE:-SANWA VALUE '5'. 88 :SALE:-REFUND-CHECK-REQUEST VALUE '6'. 88 :SALE:-BAD-DEBT VALUE '7'. 88 :SALE:-ISCT-WITH-AMORT VALUE '8'. 88 :SALE:-ISCT-WITHOUT-AMORT VALUE '9'.

Page 11: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

88 :SALE:-VOIDED-REFUND-CHECK VALUE 'A'. 88 :SALE:-REFUND-CHECK-WITH-ISCT VALUE 'B'. 88 :SALE:-FRANCHISE-ISCT VALUE 'C'. 88 :SALE:-CREDIT-CARD-WITH-ISCT VALUE 'D'.

10 :SALE:-SLTKT-PYMT-AMT PIC S9(9)V99 COMP-3. RPR6621F…USE AMT FROM SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[Extended Price]

10 :SALE:-CHK-ID PIC X(6). N/A…RPR6621F SET AS BLANK 10 :SALE:-TRVLR-CHK-ID PIC X(11). N/A…RPR6621F SET AS BLANK 10 :SALE:-COMCHG-CMPNY-ID PIC X(2). N/A…RPR6621F SET AS BLANK 10 :SALE:-COMCHG-ACCT-ID PIC X(14). N/A…RPR6621F SET AS BLANK 10 :SALE:-COMCHG-AUTH-ID PIC X(7). N/A…RPR6621F SET AS BLANK 10 :SALE:-PO-ID PIC X(30). N/A…RPR6621F SET AS BLANK 10 :SALE:-COMCHG-RCV-NM PIC X(30). N/A…RPR6621F SET AS BLANK 10 :SALE:-COMCHG-NBR-INVOICES PIC S9(7) COMP-3. N/A…RPR6621F SET AS ZERO 10 :SALE:-LEASE-APRVL-NBR PIC 9(7). N/A…RPR6621F SET AS ZERO 10 :SALE:-LEASE-ID PIC X(10). N/A…RPR6621F SET AS BLANK 10 :SALE:-LEASE-CUST-NBR PIC 9(9). N/A…RPR6621F SET AS ZERO 10 :SALE:-LEASE-CUST-NM PIC X(30). N/A…RPR6621F SET AS BLANK 10 :SALE:-CRCRD-ACCT-ID PIC X(19). N/A…RPR6621F SET AS BLANK

10 :SALE:-CRCRD-EXP-DT PIC 9(8). N/A…RPR6621F SET AS ZERO 10 F REDEFINES :SALE:-CRCRD-EXP-DT. 15 :SALE:-CRCRD-EXP-MM PIC 9(2). 15 :SALE:-CRCRD-EXP-DD PIC 9(2). 15 :SALE:-CRCRD-EXP-CC PIC 9(2). 15 :SALE:-CRCRD-EXP-YY PIC 9(2).

10 :SALE:-CRCRD-TYP-CD PIC X(5). N/A…RPR6621F SET AS BLANK 10 :SALE:-CRCRD-TRNS-ID PIC 9(6). N/A…RPR6621F SET AS ZERO 10 :SALE:-CRCRD-AUTH-ID PIC X(6). N/A…RPR6621F SET AS BLANK 10 :SALE:-ISCT-STR-NBR PIC X(6). SQL SERVER FIELD dbo_vw_POSTicketLineItemDetailView.[POS UserID] + dbo_vw_POSTicketLineItemDetailView.[POS StoreID], RPR6621F

10 :SALE:-PYMT-ISCT-NBR PIC 9(6). NON SQL SERVER…RPR6621F…USE FIELD :SALE:-TICKET-NBR FROM THE :SALE:-REC-KEY AREA OF THIS FILE LAYOUT. VALUE WOULD ALREADY HAVE BEEN GENERATED AT THIS JUNCTURE.

10 :SALE:-ISCT-ACCT-TYP PIC X(5). RPR6621F…SET AS ‘NEW’ 10 :SALE:-ISCT-ACCT-CD PIC X(1). RPR6621F…SET AS ‘8’ 10 :SALE:-BAD-DEBT-TYP PIC X(5). N/A…RPR6621F…SET AS BLANK 10 :SALE:-BAD-DEBT-CD PIC X(1). N/A…RPR6621F…SET AS BLANK 10 :SALE:-NBR-INVC-COPIES PIC S9(7) COMP-3. N/A…RPR6621F…SET AS ZERO 10 :SALE:-ORG-INVC-NBR PIC 9(6). N/A…RPR6621F…SET AS ZERO

Page 12: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-FRAN-SVP-PCT PIC S9(3) COMP-3. OBSOLETE FIELD…RPR6621F SET TO ZERO… NOTE FROM PROGRAM SC55P55:

* tkt level or pymt level franchise pct is no longer valid. [04074] * the fran pct is now carried at the tkt line level. [04075] * comm-fran-precision-pct replaces comm-fran-pct at the tkt line [04076] * level and is figured in sc53p53 [04077] * work request: rssp franchise pricing model change [04078] * IF COMM-SLTKT-PYMT-AMT < ZERO AND COMM-FRANCHISE-TRAN [04079] * MOVE COMM-FRAN-PCT OF COMM-SC55-WORK-FIELDS [04080] * TO SALE-FRAN-SVP-PCT

10 :SALE:-FRAN-SVP-AMT PIC S9(9)V99 COMP-3. OBSOLETE FIELD…RPR6621F SET TO ZERO… NOTE FROM PROGRAM SC55P55:

* tkt level or pymt level franchise pct is no longer valid. [04074] * the fran pct is now carried at the tkt line level. [04075] * comm-fran-precision-pct replaces comm-fran-pct at the tkt line [04076] * level and is figured in sc53p53 [04077] * work request: rssp franchise pricing model change [04078] * IF COMM-SLTKT-PYMT-AMT < ZERO AND COMM-FRANCHISE-TRAN [04079] * MOVE COMM-FRAN-PCT OF COMM-SC55-WORK-FIELDS [04080] * TO SALE-FRAN-SVP-PCT [04081] * COMPUTE WORK-FRAN-AMT ROUNDED = COMM-SLTKT-PYMT-AMT * [04082] * ( COMM-FRAN-PCT OF COMM-SC55-WORK-FIELDS / 100 ) [04083] *---------------------------------------------------------------* [04084] * THE NEXT MULTIPLY IS BECAUSE THE IBM COMPUTE STATEMENT HAS * [04085] * KNOWN BUG THAT ROUNDS INTERMITTENTLY INSTEAD OF AT THE END * [04086] *---------------------------------------------------------------* [04087] * MULTIPLY WORK-FRAN-AMT BY 1 GIVING [04088] * SALE-FRAN-SVP-AMT ROUNDED [04089] * END-IF

10 :SALE:-REASON-FOR-ISCT PIC X(30). N/A…RPR6621F…SET AS BLANK 10 :SALE:-MISCTRAN-TYP-CD PIC X(1). N/A…RPR6621F…SET AS BLANK 10 :SALE:-MISCTRAN-TYP PIC X(4). N/A…RPR6621F…SET AS BLANK 10 :SALE:-MISCTRAN-OTH-DESC PIC X(20). N/A…RPR6621F…SET AS BLANK 10 :SALE:-ACCT-SCRTY-ID PIC X(40). N/A…RPR6621F…SET AS BLANK 10 :SALE:-SLTKT-PMTSEQ-NBR PIC S9(4) USAGE COMP. RPR6621F…SET AS 1 [even if multiple lines are on a given tkt, there is still only one payment record for franchise tkts]

10 F PIC X(115).

Page 13: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

the ‘BE’ record type creation is driven by the value of field :SALE:-SLTKT-NBR-DSCNT found on the ‘B’ rec of this file layout. If :SALE:-SLTKT-NBR-DSCNT field is > 0 then the ‘BE’ rec is to be created by RPR6621F for the tkt. Otherwise, the ‘BE’ rec is not created for the tkt. *---------------------------------------------------------------- * TYPE 'BE ' - DISCOUNT RECORD *---------------------------------------------------------------- 05 :SALE:-RECORD-BE REDEFINES :SALE:-DATA. 10 :SALE:-SLTKT-DSCNT-TYP-CD PIC X(3). RPR6621F…SET AS ‘OTH’ 88 :SALE:-GOVERNMENT-DISCOUNT VALUE 'GOV'. 88 :SALE:-EDUCATIONAL-DISCOUNT VALUE 'EDU'. 88 :SALE:-EARLY-RENEWAL-DISCOUNT VALUE 'REN'. 88 :SALE:-OTHER-DISCOUNT VALUE 'OTH'. 88 :SALE:-MAJOR-ACCOUNT VALUE 'MAJ'.

10 :SALE:-DSCNT-PCT PIC S9(3) COMP-3. RPR6621F…CALC AS dbo_vw_POSTicketLineItemDetailView.[Discount Amt] divided by dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

RPR6621F will have to keep track of any discounts while processing the individual lines of a given tkt. if a discount exists on any line of the tkt, then this ‘BE’ rec will be created. ISSUE: the 010118 DR business rule of having the discount% equal across all lines of a tkt needs to be reflected in the fran pos system.

10 :SALE:-DSCNT-CNTL-ID PIC X(8). N/A…WAS INPUT BY AGENT IF USED…RPR6621F SET TO BLANK 10 :SALE:-SLTKT-OTHDSC-DESC PIC X(30). RPR6621F…SET TO ‘ADJUSTMENT’…NOTE FROM PROGRAM SC55P55:

* this default per rssp franchise pricing model change project [01453] IF COMM-SLTKT-OTHDSC-DESC = SPACES [01454] IF COMM-SLTKT-DSCNT-REASON = 'OTH' [01455] MOVE 'ADJUSTMENT' TO COMM-SLTKT-OTHDSC-DESC [01456] END-IF [01457] END-IF 10 F PIC X(423).

Page 14: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

*---------------------------------------------------------------- * TYPE 'BF ' - SALE TICKET TSP INFORMATION *---------------------------------------------------------------- 05 :SALE:-RECORD-BF REDEFINES :SALE:-DATA. 10 :SALE:-LINE-DELETED-FLAG PIC X(1). RPR6621F…SET AS ‘N’ 88 :SALE:-SKU-LINE-DELETED VALUE 'Y'. 88 :SALE:-SKU-LINE-NOT-DELETED VALUE 'N'.

10 :SALE:-SVP-RTL-QTY PIC S9(5) COMP-3. RPR6621F…SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[Item Quantity] ISSUE: note from Jeremy smith:“I can sell/return up to (+/-)999 radios and (+/-)999 protection plans on just two rows.I would say that quantities of more than one are rare but there is nothing preventing it in POS.” I explained to Jeremy that the 01 store pos system has a business rule in place since around 1996 that does not allow a qty > 1 or < -1 to exist on any given service plan line of a tkt. We need to decide if we will continue to allow fran pos to be out of sync with 01 corp pos in this respect. If we do, then the batch processing will be impacted potentially in a large, unnecessary, manner.

10 :SALE:-SKU-ID PIC X(7). RPR6621F…SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[ParentSku]

10 :SALE:-SVP-EQUIP-MODFY-CD PIC X(1). N/A…RPR6621F SET AT BLANK

10 :SALE:-SVP-TYP-CD PIC X(1). EITHER ‘C’for computer or ‘S’ for consumer…RPR6621F…NOTE: THIS VALUE IS CURRENTLY COMING FROM THE CICS SCREEN PROCESSING QUERY:

*********************************************** GET-SKU-TYPE. *********************************************** MOVE SQL-SKU-ID(1:3) TO SKU-CATG-ID EXEC SQL SELECT SKU_CATG_CD INTO :SQL-CATG-CD FROM RS_SKU_CATG WHERE SKU_CATG_ID = :SKU-CATG-ID AND SKU_CATG_VRSN_CD = 'TSP' END-EXEC

The view RS_SKU_CATG is no longer maintained and has out-of-date category classifications. If we need to have the merch sku classified then we need to have a new method for doing this. A Smart TS query of RS_SKU_CATG reveals all programs that may have updated the view as being obsolete:

Page 15: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-SVP-COVER-MTH-QTY PIC S9(5) COMP-3. ISSUE: this is the length of the contract that was sold and is a fundamental piece of data that is not present on the sql server DB. I will recommend to the project team getting this added to sql server DB and fran pos. In lieu of that, RPR6620F would have to derive this field by first doing a lookup to CMP.SVP_DETAIL using sql server field:

dbo_vw_POSTicketLineItemDetailView.[SKU ID],

If the svp sku id was located on CMP.SVP_DETAIL, then this field could be loaded from SVP_COVER_MTH_QTY in CMP.SVP_DETAIL. This presents an opportunity for failover processing to occur due to any changes that might occur in the price control database [CMP.SVP_DETAIL] between the time the trans occurs at the fran store and the time RPR6620F runs [a latency time window of potentially 12+ hours]. This would be wasteful processing, regardless, since the daily service plan price control feed from corporate to fran pos already provides this piece of data to the fran pos system.

10 :SALE:-SVP-LOC-WRNTY-COND-CD PIC X(1). SEE BELOW… 88 :SALE:-CARRY-IN-IN-WARR VALUE '1'. 88 :SALE:-CARRY-IN-OUT-OF-WARR VALUE '2'. 88 :SALE:-CARRY-IN-RENEWAL VALUE '3'. 88 :SALE:-ON-SITE-IN-WARR VALUE '4'. 88 :SALE:-ON-SITE-OUT-OF-WARR VALUE '5'. 88 :SALE:-ON-SITE-RENEWAL VALUE '6'. 88 :SALE:-CARRY-IN-SVP VALUE '1' THRU '3'.

Page 16: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

88 :SALE:-ON-SITE-SVP VALUE '4' THRU '6'.

ISSUE: not present on sql server data. I will recommend to the project team getting this added to sql server DB and fran pos. in lieu of that, RPR6620F would have to derive this field by first doing a lookup to CMP.SVP_DETAIL joining to CMP.SVP_PRICE_DTL using sql server fields:

dbo_vw_POSTicketLineItemDetailView.[SKU ID],

If the svp sku id was found on the query to CMP.SVP_DETAIL then this field could be loaded by RPR6620F surveying fields SVP_WRNTY_TYP_CD and SVP_SRVC_LOC_CD from CMP.SVP_DETAIL. This presents an opportunity for failover processing to occur due to any changes that might occur in the price control database between the time the trans occurs at the fran store and the time RPR6620F runs [a latency time window of potentially 12+ hours]. This would be wasteful processing, regardless, since the daily service plan price control feed from corporate to fran pos already provides these pieces of data to the fran pos system.

10 :SALE:-SKU-SLMKR-DESC PIC X(30). this is the merch sku description. It is available on sql server DB but it is not feasible to source it from there because it is on another line of the tkt and there is no formal link between lines of a tkt. Besides, it is easy enough to look the desc up as below. RPR6620F retrieve it using this sql:

SELECT A.SKU_DESC INTO :PRODUCT.SKU-DESC FROM PRODUCT A WHERE SKU_ID = :SQL-SKU-ID AND PROD_EXP_DT = (SELECT MAX(PROD_EXP_DT) FROM PRODUCT X WHERE X.SKU_ID = A.SKU_ID)

10 :SALE:-SVP-REGL-PRICE-AMT PIC S9(9)V99 COMP-3. sql server DB field: dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]…RPR6621F

10 :SALE:-SVP-CALC-DT PIC 9(8). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Trans Date Time]…RPR6621F 10 F REDEFINES :SALE:-SVP-CALC-DT. 15 :SALE:-SVP-CALC-MM PIC 9(2). 15 :SALE:-SVP-CALC-DD PIC 9(2). 15 :SALE:-SVP-CALC-CC PIC 9(2). 15 :SALE:-SVP-CALC-YY PIC 9(2).

Page 17: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-SVP-BEG-DT PIC 9(8). SQL SERVER FIELD: dbo_vw_POSTicketLineItemDetailView.[POS Trans Date Time]…RPR6620F 10 F REDEFINES :SALE:-SVP-BEG-DT. 15 :SALE:-SVP-BEG-MM PIC 9(2). 15 :SALE:-SVP-BEG-DD PIC 9(2). 15 :SALE:-SVP-BEG-CC PIC 9(2). 15 :SALE:-SVP-BEG-YY PIC 9(2).

10 :SALE:-SVP-ACTUAL-NBR-MTHS PIC S9(5) COMP-3. this would normally be the result of a prorated contract figured with date math using the calc-dt, beg-dt, and end-dt fields but we’re not doing prorating via the automated system. RPR6621F will set this equal to :SALE:-SVP-COVER-MTH-QTY.

10 :SALE:-SVP-END-DT PIC 9(8). RPR6620F will figure this using date math: :SALE:-SVP-BEG-DT + :SALE:-SVP-COVER-MTH-QTY 10 F REDEFINES :SALE:-SVP-END-DT. 15 :SALE:-SVP-END-MM PIC 9(2). 15 :SALE:-SVP-END-DD PIC 9(2). 15 :SALE:-SVP-END-CC PIC 9(2). 15 :SALE:-SVP-END-YY PIC 9(2).

10 :SALE:-SVP-DSCNT-PCT PIC S9(3) COMP-3. in program sc53p53, the svp line input screen for 010118 DR, field COMM-DSCNT-PCT holds the screen input of this field. :SALE:-SVP-DSCNT-PCT gets its value in program sc53p53 from field COMM-DSCNT-PCT. RPR6620F…CALC AS

Sql server field: dbo_vw_POSTicketLineItemDetailView.[Discount Amt] divided by Sql server field: dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

10 :SALE:-SVP-DSCNT-AMT PIC S9(9)V99 COMP-3. RPR6621F load using:Sql server field: dbo_vw_POSTicketLineItemDetailView.[Discount Amt]

10 :SALE:-SVP-RTL-AMT PIC S9(9)V99 COMP-3. holds the cust tender amt after discounting and/or pro-rating and/or the franchise calc [the piece of paper from Karen H. hung on my wall]. RPR6620F needs to do Karen’s calc that is in cics program sc53p53:

To achieve Karen’s calc:

First establish the FRAN-PRECISION-PCT [see this field below in file layout] by using the calc that’s in cics program SC53P53 in paragraph GET-COMM-FRAN-PCT.

Second, finish calc by interpreting in RPR6620F this calc that’s in sc53p53:

IF COMM-SLTKT-TRAN-TYP-CD = 'F' AND COMM-FRAN-PRECISION-PCT > ZERO

Page 18: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

COMPUTE WORK-BEG-AMT ROUNDED = COMM-BEG-PRICE * ( 100 / COMM-FRAN-PRECISION-PCT ) *---------------------------------------------------------------* * the next multiply is because the ibm compute statement has * * known bug that rounds intermittently instead of at the end * *---------------------------------------------------------------* MULTIPLY WORK-BEG-AMT BY 1 GIVING COMM-BEG-PRICE ROUNDED COMPUTE WORK-RTL-AMT ROUNDED = COMM-RTL-AMT * ( 100 / dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price] COMM-FRAN-PRECISION-PCT ) would already be computed…see –SALE-FRAN-PRECISION-PCT field below *---------------------------------------------------------------* * the next multiply is because the ibm compute statement has * * known bug that rounds intermittently instead of at the end * *---------------------------------------------------------------* MULTIPLY WORK-RTL-AMT BY 1 GIVING COMM-RTL-AMT ROUNDED END-IF

Subtract out any discount present:

MINUS Sql server field: dbo_vw_POSTicketLineItemDetailView.[Discount Amt]

10 :SALE:-SLTKT-PUR-NBR PIC 9(6). RPR6621F load fromSql server field: dbo_vw_POSTicketLineItemDetailView.[POS Org Ticket Number] new field

10 :SALE:-SLTKT-PUR-DT PIC 9(8). RPR6621F load from Sql server field: dbo_vw_POSTicketLineItemDetailView.[POS Org Trans Date Time] new field 10 F REDEFINES :SALE:-SLTKT-PUR-DT. 15 :SALE:-SLTKT-PUR-MM PIC 9(2). 15 :SALE:-SLTKT-PUR-DD PIC 9(2). 15 :SALE:-SLTKT-PUR-CC PIC 9(2). 15 :SALE:-SLTKT-PUR-YY PIC 9(2).

10 :SALE:-SLTKT-PUR-STR PIC X(6). RPR6621F load from Sql server field: dbo_vw_POSTicketLineItemDetailView.[POS Org StoreID] new field

10 :SALE:-REF-CNTL-ID PIC X(7). N/A…RPR6621F BLANK OUT 10 :SALE:-REF-DROP-ID PIC X(5). N/A…RPR6621F BLANK OUT 10 :SALE:-NBR-SER-IDS PIC S9(3) COMP-3. RPR6621F SET AS 1. Since the qty per line cannot be > 1 there cannot be more than 1 as a value in this field.

Page 19: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-NBR-EQIP-CDS PIC S9(3) COMP-3. N/A…RPR6621F SET AS ZERO 10 :SALE:-SVP-ZNE-SRCHRG-AMT PIC S9(9)V99 COMP-3. N/A…RPR6621F SET AS ZERO 10 :SALE:-FRAN-PCT PIC S9(5) COMP-3. N/A…RPR6621F SET AS ZERO* this old version of franchise percent is no longer valid [02802] * because it represents a tkt-level percent found on the BD rec [02803] MOVE ZERO TO COMM-FRAN-PCT

10 :SALE:-SVP-BEG-PRICE-AMT PIC S9(9)V99 COMP-3. sql server DB field: dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]…RPR6621F

10 :SALE:-SVP-CNTL-ID PIC X(7). generated in program RPR6602 during 010118 DR nightly processing.

10 :SALE:-SVP-DROP-ID PIC X(5). generated in program RPR6602 during 010118 DR nightly processing. 10 :SALE:-SVP-SOLIC-TYP PIC X(1). RPR6621F set as blank. obsolete field. Was once used to indicate first or last month type solicitation for direct mail marketing of service plans

* work request: rssp franchise pricing model change 10 :SALE:-SVP-SKU-ID PIC X(7). RPR6621F use sql server field: dbo_vw_POSTicketLineItemDetailView.[SKU ID]

10 :SALE:-SVP-COST-AMT PIC S9(7)V9(2) COMP-3. RPR6620F retrieve from service plan price control DB2 table: CMP.SVP_COST_DTL using the code/sql found in paragraphs “GET-SALES-CHANNEL” then “GET-SVP-COST” in CICS program: CMNTIS.CICSPGM.SRC(SC53P53S):

**************************************** GET-SALES-CHANNEL. **************************************** MOVE dbo_vw_POSTicketLineItemDetailView.[POS UserID] TO SQL-USER-NBR MOVE dbo_vw_POSTicketLineItemDetailView.[POS StoreID] TO SQL-STR-ID EXEC SQL SELECT SLS_CHNL_ID INTO :RS-SLS-CHNL.SLS-CHNL-ID FROM RS_SLS_CHNL WHERE USER_NBR = :SQL-USER-NBR AND STR_ID = :SQL-STR-ID END-EXEC

**************************************************************

Page 20: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

GET-SVP-COST. ************************************************************** MOVE LINK-SLS-CHNL-ID TO SQL-SLS-CHNL-ID

MOVE SLS-CHNL-ID OF RS-SLS-CHNL TO SQL-SLS-CHNL-ID MOVE LINK-SVP-SKU-ID TO SQL-SVP-SKU-ID

MOVE dbo_vw_POSTicketLineItemDetailView.[SKU ID] TO SQL-SVP-SKU-ID

* reformat the link date to yyyymmdd this will probably be the system date when RPR6620F runs. MOVE LINK-COMPARE-DT-YYYY TO WS-COMPARE-YYYY MOVE LINK-COMPARE-DT-MM TO WS-COMPARE-MM MOVE LINK-COMPARE-DT-DD TO WS-COMPARE-DD * get the system date PERFORM FORMAT-EIBDATE * if link compare date not sent or the link compare date is in* the future, use system date for the sql date comparison IF LINK-COMPARE-MMSDDSYYYY-DT = '00/00/0000' OR WS-COMPARE-DATE-YYYYMMDD > WS-EIBDATE-GREGORIAN MOVE WS-EIBDATE-GREG-MMSDDSCCYY TO SQL-COMPARE-MMSDDSYYYY-DT ELSE MOVE LINK-COMPARE-MMSDDSYYYY-DT TO SQL-COMPARE-MMSDDSYYYY-DT END-IF EXEC SQL SELECT SCD.SVP_COST_AMT, SCD.CORP_PROFIT_PCT INTO :SVP-COST-DTL.SVP-COST-AMT, :SVP-COST-DTL.CORP-PROFIT-PCT: WS-CORP-PROFIT-PCT-IND FROM SVP_COST_DTL SCD WHERE SCD.SVP_SKU_ID = :SQL-SVP-SKU-ID AND SCD.SLS_CHNL_ID = :SQL-SLS-CHNL-ID AND SCD.SVP_COST_EFF_DT = (SELECT MAX(X.SVP_COST_EFF_DT) FROM SVP_COST_DTL X WHERE X.SVP_SKU_ID = SCD.SVP_SKU_ID AND X.SLS_CHNL_ID = SCD.SLS_CHNL_ID AND X.SVP_COST_EFF_DT <=

Page 21: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

:SQL-COMPARE-MMSDDSYYYY-DT) END-EXEC

10 :SALE:-ORG-SVP-RTL-AMT PIC S9(9)V99 COMP-3. RPR6621F use sql server field: dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

10 :SALE:-SVP-CATG-ID PIC X(4). this is SVP_CATG_ID from DB2 table CMP.MDSE_SVP_ASOC. RPR6620F do lookup to service plan price control table using the code/sql found in paragraph GET-SVP-CATG-ID of program SC53P53S.

10 :SALE:-FRAN-PRECISION-PCT PIC S9(3)V9(4) COMP-3. RPR6620F calc using the calc found in CICS program sc53p53 in paragraph GET-COMM-FRAN-PCT:

IF COMM-ORG-SVP-RTL-AMT > ZERO dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price] * calculation supplied from accounting: * ((svp rtl amt - dealer net) x corp profit%) + dealer net COMPUTE WS-COST-TO-FRAN-AMT ROUNDED = ((COMM-ORG-SVP-RTL-AMT - COMM-SVP-COST-AMT) dbo_vw_POSTicketLineItemDetailView.[Unit Sell Price]

use sql from sc53p53s * COMM-CORP-PROFIT-PCT / WS-FACTOR) :SALE:-CORP-PROFIT-PCT previously retrieved + COMM-SVP-COST-AMT use sql from sc53p53s * the next multiply is because the ibm compute statement has * known bug that rounds intermittently instead of at the end MULTIPLY WS-COST-TO-FRAN-AMT BY 1 GIVING WS-COST-TO-FRAN-AMT ROUNDED * figure as a pct the relationship between the "cost to franchise"* and the svp rtl amt (cost to fran divided by svp rtl amt) in * order to allow the existing calc infrastructure to continue * to operate properly. previously, this % would have been a * constant 75% sourced from in5.rpr.control. now it must be * derived after the new accounting formula is executed above. COMPUTE COMM-FRAN-PRECISION-PCT ROUNDED = (WS-COST-TO-FRAN-AMT / COMM-ORG-SVP-RTL-AMT) * 100 * the next multiply is because the ibm compute statement has * known bug that rounds intermittently instead of at the end MULTIPLY COMM-FRAN-PRECISION-PCT BY 1 GIVING COMM-FRAN-PRECISION-PCT ROUNDED ELSE MOVE 100.0000 TO COMM-FRAN-PRECISION-PCT

Page 22: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

END-IF

10 :SALE:-CORP-PROFIT-PCT PIC S9(3)V9(2) COMP-3. :SVP-COST-DTL.CORP-PROFIT-PCT:WS-CORP-PROFIT-PCT-IND : will have already been retrieved in the sql used for getting :SALE:-SVP-COST-AMT. Populate in RPR6620F.

10 F PIC X(279).

*---------------------------------------------------------------- * TYPE 'BFA ' - SALE TICKET SERIAL NUMBERS *---------------------------------------------------------------- 05 :SALE:-RECORD-BFA REDEFINES :SALE:-DATA. 10 :SALE:-SKU-SER-ID PIC X(25). not available on sql server DB. RPR6621F SET AS “01NOSN” 10 :SALE:-EQUIP-TYP-CD PIC X(7). obsolete field. Was formerly used for lab sales which are not done anymore. RPR6621F SET AS BLANK.

10 F PIC X(434).

credit memos are n/a for fran automation project *---------------------------------------------------------------- * TYPE 'BG ' - SALES TCKT REC - CREDIT MEMO RECS *---------------------------------------------------------------- 05 :SALE:-RECORD-BG REDEFINES :SALE:-DATA. 10 :SALE:-CRED-MEMO-NBR PIC 9(6). 10 :SALE:-CRED-MEMO-INVC-NBR PIC 9(6). 10 :SALE:-CRED-MEMO-INVC-AMT PIC S9(9)V99 COMP-3.

10 :SALE:-CRED-MEMO-INVC-DT PIC 9(8). 10 F REDEFINES :SALE:-CRED-MEMO-INVC-DT. 15 :SALE:-CRED-MEMO-INVC-MM PIC 9(2). 15 :SALE:-CRED-MEMO-INVC-DD PIC 9(2). 15 :SALE:-CRED-MEMO-INVC-CC PIC 9(2). 15 :SALE:-CRED-MEMO-INVC-YY PIC 9(2).

10 :SALE:-CRED-MEMO-AR-FLAG PIC X(1). 10 F PIC X(439).

invoicing was never implemented…these rec types were never used *---------------------------------------------------------------- * TYPE 'BH ' - SALES TCKT REC - INVOICE BILLING *---------------------------------------------------------------- 05 :SALE:-RECORD-BH REDEFINES :SALE:-DATA. 10 :SALE:-INVC-TOTL-SURCHARGE PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-TOTL-ADJUSTMENTS PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-TOTL-SUBTOTAL PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-TOTL-TAX PIC S9(9)V99 COMP-3.

Page 23: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-INVC-TOTL-TOTAL PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-TOTL-NBR-INVCS PIC S9(5) COMP-3. 10 F PIC X(433).

*---------------------------------------------------------------- * TYPE 'BHA ' - SALES TCKT REC - AR TERMS *---------------------------------------------------------------- 05 :SALE:-RECORD-BHA REDEFINES :SALE:-DATA. 10 :SALE:-TERM-BILL-NBR PIC 9(6).

10 :SALE:-TERM-BILL-DT PIC 9(8). 10 F REDEFINES :SALE:-TERM-BILL-DT. 15 :SALE:-TERM-BILL-MM PIC 9(2). 15 :SALE:-TERM-BILL-DD PIC 9(2). 15 :SALE:-TERM-BILL-CC PIC 9(2). 15 :SALE:-TERM-BILL-YY PIC 9(2).

10 :SALE:-TERM-BILL-DISCNT PIC S9(9)V99 COMP-3. 10 :SALE:-TERM-BILL-TOTAL PIC S9(9)V99 COMP-3. 10 :SALE:-TERM-BILL-TERMS PIC X(2). 10 F PIC X(438).

*---------------------------------------------------------------- * TYPE 'BHB ' - SALES TCKT REC - INVOICE RECORDS *---------------------------------------------------------------- 05 :SALE:-RECORD-BHB REDEFINES :SALE:-DATA. 10 :SALE:-INVC-BILL-NBR PIC 9(6).

10 :SALE:-INVC-BILL-DT PIC 9(8). 10 F REDEFINES :SALE:-INVC-BILL-DT. 15 :SALE:-INVC-BILL-MM PIC 9(2). 15 :SALE:-INVC-BILL-DD PIC 9(2). 15 :SALE:-INVC-BILL-CC PIC 9(2). 15 :SALE:-INVC-BILL-YY PIC 9(2).

10 :SALE:-INVC-BILL-DSCNT-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-BILL-SURCHARGE PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-BILL-ADJUSTMENT PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-BILL-SUBTOTAL PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-BILL-TAX PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-BILL-TOTAL PIC S9(9)V99 COMP-3. 10 F PIC X(416).

*---------------------------------------------------------------- * TYPE 'BHBA ' - SALES TCKT REC - INVOICE RECORDS

Page 24: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

*---------------------------------------------------------------- 05 :SALE:-RECORD-BHBA REDEFINES :SALE:-DATA. 10 :SALE:-INVC-DETL-QTY PIC S9(3) COMP-3. 10 :SALE:-INVC-DETL-SKU-ID PIC X(7). 10 :SALE:-INVC-DETL-AFTR-MRKT-CD PIC X(1). 10 :SALE:-INVC-DETL-DESC PIC X(30). 10 :SALE:-INVC-DETL-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-INVC-DETL-COVERAGE PIC X(15). 10 :SALE:-INVC-DETL-EXTND-AMT PIC S9(9)V99 COMP-3. 10 F PIC X(399).

FROM HERE TO THE BOTTOM IS FOR REPLACEMENTS FUNCTIONALITY ONLY WHICH WON’T NEED TO BE MAPPED. LEONARD MENDIS IS DOING NEW PROGRAMMING FOR REPLACEMENTS. THE 010119 DR IS NOT BEING USED FOR THE AUTOMATION OF REPLACEMENTS.

**************************************************************** * RECORD C ISCT RECORD MANY PER STORE / PER DAY * **************************************************************** 05 :SALE:-RECORD-C REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-COMPLETE-IND PIC X(1). 88 :SALE:-ISCT-COMPLETED VALUE 'Y'. 88 :SALE:-ISCT-NOT-COMPLETED VALUE 'N'.

10 :SALE:-ISCT-OPER-ID PIC X(3).

10 :SALE:-ISCT-CHRG-TYP-CD PIC X(1). 88 :SALE:-MISQUOTE VALUE '1'. 88 :SALE:-STORE-CREDIT VALUE '2'. 88 :SALE:-CREATE-REPLACEMENT VALUE '3'. 88 :SALE:-CHARGE-BACK VALUE '4'. 88 :SALE:-REVERSE-CHARGE-BACK VALUE '5'. 88 :SALE:-RECEIVE-REPLACEMENT VALUE '6'. 88 :SALE:-STORE-CREDIT-SRVC-CNTR VALUE '7'. 88 :SALE:-REPLACEMENT-SRVC-CNTR VALUE '8'. 88 :SALE:-RVRS-CHRG-BACK-OUTLET VALUE '9'. 88 :SALE:-STORE-KEEPING-EQUIP VALUE 'A'.

10 :SALE:-ISCT-STR PIC X(6).

Page 25: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-ISCT-TOTL-AMT PIC S9(9)V99 COMP-3.

10 :SALE:-ISCT-SLTKT-PUR-NBR PIC 9(6). 10 :SALE:-ISCT-SLTKT-PUR-DT PIC 9(8). 10 F REDEFINES :SALE:-ISCT-SLTKT-PUR-DT. 15 :SALE:-ISCT-SLTKT-PUR-MM PIC 9(2). 15 :SALE:-ISCT-SLTKT-PUR-DD PIC 9(2). 15 :SALE:-ISCT-SLTKT-PUR-CC PIC 9(2). 15 :SALE:-ISCT-SLTKT-PUR-YY PIC 9(2).

10 :SALE:-ISCT-CMNT-DESC PIC X(50). 10 :SALE:-ISCT-CUST-NM PIC X(30). 10 :SALE:-ISCT-NBR-SKU-IDS PIC S9(3) COMP-3. 10 :SALE:-ISCT-NBR-GOOD-SKU-IDS PIC S9(3) COMP-3.

* 10 F PIC X(351). * ADDED ADDITIONAL FIELDS 12/14/92 AS PART OF PHASE II * 10 :SALE:-ISCT-SLTKT-PUR-STR-NBR PIC X(6). 10 :SALE:-ISCT-SVP-CNTL-ID PIC 9(7). 10 :SALE:-ISCT-SVP-DROP-ID PIC 9(5). 10 :SALE:-ISCT-SVP-TYP-CD PIC X(1). 88 :SALE:-CONSUMER-SVP VALUE 'S'. 88 :SALE:-COMPUTER-SVP VALUE 'C'.

10 :SALE:-CISRVC-TKT-NBR PIC 9(6). 10 :SALE:-ISCT-ICRT-NBR PIC 9(6). 10 :SALE:-JNL-ACCT-GRP-CD PIC X(1). 88 :SALE:-IN-WARRANTY VALUE 'I'. 88 :SALE:-OUT-WARRANTY VALUE 'O'. 88 :SALE:-COMPANY VALUE 'C'. 88 :SALE:-FRANCHISE VALUE 'F'.

10 :SALE:-ISCT-MISC-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-LBR-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-PART-AMT PIC S9(9)V99 COMP-3.

10 :SALE:-SKU-SALVG-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-RESALE-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-SKU-REPL-AUTH-ID PIC 9(6).

10 :SALE:-ISCT-PUR-STR-NBR PIC X(6). 10 :SALE:-ISCT-PUR-NBR PIC 9(6). 10 :SALE:-ISCT-PUR-DT PIC 9(8). 10 F REDEFINES :SALE:-ISCT-PUR-DT.

Page 26: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

15 :SALE:-ISCT-PUR-MM PIC 9(2). 15 :SALE:-ISCT-PUR-DD PIC 9(2). 15 :SALE:-ISCT-PUR-CC PIC 9(2). 15 :SALE:-ISCT-PUR-YY PIC 9(2).

10 :SALE:-ISCT-SRV-CTR-NBR PIC X(6). 10 :SALE:-ISCT-REPLACE-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-NBR-COMPUTER-SKU-IDS PIC S9(3) COMP-3. 10 :SALE:-NBR-CONSUMER-SKU-IDS PIC S9(3) COMP-3. 10 :SALE:-REPL-HNDLG-PCT PIC S9(3)V99 COMP-3. 10 :SALE:-REPL-STR-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-REPL-OUTLET-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-OUTLET-STR-NBR PIC X(6). 10 :SALE:-ISCT-TOTL-AMT-2 PIC S9(9)V99 COMP-3. * added 21 may 1999 for rsol eso effort 10 :SALE:-ISCT-RSOL-REPL-CD PIC X(5). 88 :SALE:-FIELD-REPL VALUE 'FIELD'. 88 :SALE:-TSP-STAFF-REPL VALUE 'TSP '. * added 10 aug 2005 for rs bluebird project 10 :SALE:-SRVC-AUTH-NBR PIC X(15). 10 F PIC X(200).

*---------------------------------------------------------------- * TYPE 'CA ' - ISCT VOID *---------------------------------------------------------------- 05 :SALE:-RECORD-CA REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-VOID-DT PIC 9(8). 10 F REDEFINES :SALE:-ISCT-VOID-DT. 15 :SALE:-ISCT-VOID-MM PIC 9(2). 15 :SALE:-ISCT-VOID-DD PIC 9(2). 15 :SALE:-ISCT-VOID-CC PIC 9(2). 15 :SALE:-ISCT-VOID-YY PIC 9(2).

10 :SALE:-ISCT-VOID-TM PIC 9(6). 10 F REDEFINES :SALE:-ISCT-VOID-TM. 15 :SALE:-ISCT-VOID-HH PIC 9(2). 15 :SALE:-ISCT-VOID-MN PIC 9(2). 15 :SALE:-ISCT-VOID-SS PIC 9(2).

10 :SALE:-ISCT-VOID-OPR PIC X(3).

10 :SALE:-ISCT-VOID-IND PIC X(1). 88 :SALE:-ISCT-VOIDED VALUE 'Y'. 88 :SALE:-ISCT-NOT-VOIDED VALUE 'N'.

Page 27: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-ISCT-VOID-CD PIC X(1). 88 :SALE:-TRAINING-ISCT-VOID VALUE 'T'. 88 :SALE:-POS-ISCT-VOID VALUE 'P'.

10 F PIC X(447).

*---------------------------------------------------------------- * TYPE 'CAA ' - ISCT CUSTOMER INFORMATION *---------------------------------------------------------------- 05 :SALE:-RECORD-CAA REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-CUST-LN1-ADDR PIC X(30). 10 :SALE:-ISCT-CUST-LN2-ADDR PIC X(30). 10 :SALE:-ISCT-CUST-CITY-NM PIC X(21). 10 :SALE:-ISCT-CUST-STATE-ID PIC X(2). 10 :SALE:-ISCT-CUST-CNTRY-CD PIC X(2). 88 :SALE:-CAA-UNITED-STATES VALUE 'US'. 88 :SALE:-CAA-CANADA VALUE 'CA'. 10 :SALE:-ISCT-CUST-POSTL-CD PIC X(11). 10 :SALE:-ISCT-SVP-CNTCT-NM PIC X(30).

10 :SALE:-ISCT-CUST-PHONE-NBR PIC X(12). 10 :SALE:-ISCT-NON-FOREIGN-PHONE REDEFINES :SALE:-ISCT-CUST-PHONE-NBR. 15 :SALE:-ISCT-CUST-AREA-CD PIC X(3). 15 :SALE:-ISCT-CUST-EXCHG PIC X(3). 15 :SALE:-ISCT-CUST-STATION-ID PIC X(4). 15 F PIC X(2).

10 :SALE:-CAA-SCPHONE-KEY. 15 :SALE:-CAA-PHON-CUST-STATION-ID PIC X(4). 15 :SALE:-CAA-ADD-DATE-TIME PIC X(14). 15 :SALE:-CAA-ADD-OPER-ID PIC X(3). 10 F PIC X(307).

*---------------------------------------------------------------- * TYPE 'CB ' - ISCT DETAIL FOR OLD DEFECTIVE SKU *---------------------------------------------------------------- 05 :SALE:-RECORD-CB REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-QTY PIC S9(3) COMP-3. 10 :SALE:-ISCT-SKU-ID PIC X(7). 10 :SALE:-ISCT-SVP-EQUIP-MODFY-CD PIC X(1). 10 :SALE:-ISCT-SKU-DESC PIC X(30). 10 :SALE:-ISCT-SKU-ADJ-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-SKU-TOTL-AMT PIC S9(9)V99 COMP-3.

Page 28: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-ISCT-DELETED-FLAG PIC X(1). 88 :SALE:-ISCT-DTL-DELETED VALUE 'Y'. 88 :SALE:-ISCT-DTL-NOT-DELETED VALUE 'N'. * 10 F PIC X(413).

* add'l fields added 12/17/92 for SES II. 10 :SALE:-ISCT-SLTKT-LINSEQ-NBR PIC S9(9) COMP. 88 :SALE:-SKU-NOT-PART-OF-ICRT VALUE -1.

10 :SALE:-ISCT-NBR-NEW-SKU-ID PIC S9(3) COMP-3. 10 :SALE:-ISCT-NBR-NEW-GOOD-SKU-ID PIC S9(3) COMP-3. 10 :SALE:-ISCT-TOTL-REPL-QTY PIC S9(5) COMP-3. 10 :SALE:-ISCT-TOTL-ADJ-QTY PIC S9(5) COMP-3. 10 :SALE:-SKU-ORG-RTL-QTY PIC S9(5) COMP-3. 10 :SALE:-ISCT-CISRVC-PART-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-CISRVC-DSC-LBR-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-ISCT-SKU-WRNTY-TYP-CD PIC X(5).

10 :SALE:-CB-SKU-TYP-CD PIC X(1). 88 :SALE:-COMPUTER-TYP-SKU VALUE 'C'. 88 :SALE:-CONSUMER-TYP-SKU VALUE 'S'.

10 :SALE:-BEGDT-SRVDT-WRN-IND PIC X(1). 88 :SALE:-SRVC-BEFORE-BEG-DT VALUE 'Y'. 88 :SALE:-SRVC-NOT-BEFORE-BEG-DT VALUE 'N'. * 10 F PIC X(377). * add'l fields added 01/16/94 for SES II-to enable calculation * of replacement cost by sku. 10 :SALE:-SKU-REPLACE-AMT PIC S9(9)V99 COMP-3. 10 :SALE:-SKU-RESALE-AMT PIC S9(9)V99 COMP-3. 10 F PIC X(365).

*---------------------------------------------------------------- * TYPE 'CBA ' - ISCT ITEM DETAIL QUANTITIES FOR OLD SKU *---------------------------------------------------------------- 05 :SALE:-RECORD-CBA REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-SKU-SER-ID PIC X(25). 10 :SALE:-SKU-REPL-DSPSL-CD PIC X(7). 10 :SALE:-ISCT-SLTKT-SVPSEQ-NBR PIC S9(9) COMP. 10 F PIC X(430).

*---------------------------------------------------------------- * TYPE 'CBB ' - ISCT NEW SKU IDS FOR REPLACEMENTS *---------------------------------------------------------------- 05 :SALE:-RECORD-CBB REDEFINES :SALE:-DATA.

Page 29: Data Mapping - SCSALE COPYBOOK MAPPING PRELIM GUIDE

10 :SALE:-ISCT-NEW-SKU-ID PIC X(12). 10 :SALE:-ISCT-NEW-RTL-QTY PIC S9(3) COMP-3. 10 :SALE:-ISCT-ADJUST-CNTRCT-IND PIC X(1). 10 :SALE:-ISCT-SKU-DELETED-FLAG PIC X(1). 88 :SALE:-ISCT-SKU-DELETED VALUE 'Y'. 88 :SALE:-ISCT-SKU-NOT-DELETED VALUE 'N'. 10 :SALE:-SKU-WHSE-COST-AMT PIC S9(7)V9(4) COMP-3. 10 :SALE:-CBB-SKU-TYP-CD PIC X(5). 10 :SALE:-REP-LOC-WRNTY-COND-CD PIC X(1). 88 :SALE:-ISCT-CARRY-IN-REP VALUE '1' THRU '3'. 88 :SALE:-ISCT-ON-SITE-REP VALUE '4' THRU '6'.

10 :SALE:-ISCT-SKU-SLMKR-DESC PIC X(30).

10 :SALE:-ISCT-SVP-BEG-DT PIC 9(8). 10 F REDEFINES :SALE:-ISCT-SVP-BEG-DT. 15 :SALE:-ISCT-SVP-BEG-MM PIC 9(2). 15 :SALE:-ISCT-SVP-BEG-DD PIC 9(2). 15 :SALE:-ISCT-SVP-BEG-CC PIC 9(2). 15 :SALE:-ISCT-SVP-BEG-YY PIC 9(2).

10 :SALE:-ISCT-SVP-ACTUAL-NBR-MTHS PIC S9(5) COMP-3.

10 :SALE:-ISCT-SVP-END-DT PIC 9(8). 10 F REDEFINES :SALE:-ISCT-SVP-END-DT. 15 :SALE:-ISCT-SVP-END-MM PIC 9(2). 15 :SALE:-ISCT-SVP-END-DD PIC 9(2). 15 :SALE:-ISCT-SVP-END-CC PIC 9(2). 15 :SALE:-ISCT-SVP-END-YY PIC 9(2).

10 :SALE:-ISCT-NEW-SVP-CNTL-ID PIC X(7). 10 :SALE:-ISCT-NEW-SVP-DROP-ID PIC X(5). 10 :SALE:-ISCT-EQUIP-TYP-CD PIC X(7). 10 F PIC X(370).

*---------------------------------------------------------------- * TYPE 'CBBA ' - ISCT ITEM DETAIL FOR QUANTITIES *---------------------------------------------------------------- 05 :SALE:-RECORD-CBBA REDEFINES :SALE:-DATA. 10 :SALE:-ISCT-NEW-SER-ID PIC X(25). 10 F PIC X(441).

****************************************************************** * E N D S C S A L E C O P Y B O O K * ******************************************************************