You are on page 1of 2

December 2, 2021

BPS Tasks and Status

Perm $ and temp $ history, Inventory $ and U history at SKU-CO-WK


Run Info Request or use tapes to get D1, E1, I1, I5
Run WSDF2TXT on mainframe (eliminates comp-2, headers , blank records)
Download file
Convert to CSV using DataJunction (spec = skucowk)
Use BCP to import into BPS (work_sku_co_wk)
Load data into production tables:
Run IMPORT01.SQL to import D1 into sku_str_wk_inv, E1 into sku_str_wk_sales, I1 & I5 into
sku_comp_week_inventory
Verify data against Commander

NOTES:Inventory info used to calculate weekly retail price history (linda can only get it from POS if they sold it)
Sample source data is in skucowk.csv, sample finished data is in production tables
May want to get temps from Linda’s POS tapes (if so, comment out last section of sql)
Markdown info is in sku_str_dtl tables with store set to 197

Perm $ and temp $ history at CLS-STR-WK


Run Info Request or use tapes to get D1 and E1 (terr = HQ and 01)
Run WSDF2TXT on mainframe (eliminates comp-2, headers , blank records)
Download file
Convert to CSV using DataJunction (spec = cls-str)
Use BCP to import into BPS (work_cls_str_wk)
Load data into production tables:
Run IMPORT02.SQL to import D1 into class_str_wk_inv (perms), and E1 into class_str_wk_sales(temp)
Verify data against Commander

NOTES:Sample source data is clsstrwk.csv, sample finished data is in class_str_wk_inv and class_str_wk_sales

Ongoing perm $ at SKU-STR-WK


Run weekly batch job: AP1WCD.MISC.CNTL.DLYPERM
Download file
Convert to CSV using DataJunction (spec = skustrwk)
Use BCP to import into BPS (work_sku_str_wk_perm)
Run IMPORT03.SQL to load data into: sku_str_wk_inv
Verify data

NOTES:Sample source data is in dlyperm.csv, sample finished data is in sku_str_wk_inv


Make a stored procedure OR truncate work table after every successful load.
Inventory U history at SKU-STR-WK

Run AP1WCD.MISC.CNTL.MERPAR47 or equivalent to extract TY Inv U from ARIES (LY from WSDF tapes - wait FF)
Run AP1WCD.MISC.CNTL.DBJOB99 to eliminate comp-2 & blank records
Run AP1WCD.MISC.CNTL.SORTMERP to eliminate unwanted variables and GOB stores
Download file
Convert to CSV using DataJunction (spec = skustrwk)
Use BCP to import into BPS (work_sku_str_wk)
Load data into production tables:
Run IMPORT04.SQL to load data into sku_str_wk_inv
Verify data

NOTES:Sample file is invhist.csv


Expect to calculate Inv $ history on the fly using price history.

Price History for SKU-WEEKLY-AVG-COST


Run IMPORT05.SQL to calculate prices and load data

Arthur Plan data at CLS-CO-WK


Source file is HERM1.SERVE/MISC\SLSREPRT.DAT
Convert to CSV using DataJunction (spec = plan)
Use BCP to import into BPS: class_company_period_plan
Convert datatypes and normalize periods using IMPORT06.SQL
Combine 5 variables into one record using IMPORT07.SQL
Research cobol ladder report (MERPA73) and write sql to convert from period to week. Need class-summary and ly-
class-summary DATA on SQL to proceed.
Load data into production tables: class_company_week_plan

NOTES: Add this to jobstream whenever plan data is re-uploaded to mainframe


A3 = sls pl $ I1 = otb pl $ R1 = perm pl $ R2 = temp pl $ S1 = eop pl $

Receipt history at SKU-STR-WK


Run AP1WCD.MISC.CNTL.RCPTHIST (this runs MERPA35, MERPA42, DBJOB99)

Ongoing Receipts at SKU-STR-WK

NOTES:RCDSTD10 and MERPAW42 run weekly - output is same as history, so just add sort step - includes dropships.
BUT, better to use RECOH10 and RECOH12 and triggers.

General Notes:
· All 94 data should be redone due to exclusion of store 600. Commander and invidual Cobol programs must include
store 600.
· Depts 9 & 16 on Commander cannot be used until dead skus are removed - we have exceeded the maximum number of
keys. Ashok will give Fernando new list of skus 10/5. Buyers will mark, then MIS manually deletes, then
Fernando runs jobs.
· Fernando has WSDF files for 93, which we can download directly, without running Info Request.
·

You might also like