|
Chapter Contents |
Previous |
Next |
| The BOM Procedure |
The transaction data set Trans3 contains the new values of the gross requirements of the lamp `LAXX' and the options. Note that the options `B100', `S100', and `A100' that are associated with the lamp `LA01' described in the "Getting Started" section, as well as the lamp `LAXX', have gross requirements of 1. All other options have 0 gross requirements. Therefore, the item `LAXX' and all of the selected options are master schedule items. See the "Single-Level Bills of Material Data Set" section for a detailed description about master schedule items.
The following SAS DATA step code updates the value of the Req variable in the SlBOM2 data set (shown in Output 1.2.1) with the value of the variable in the transaction data set Trans3:
/* Gross requirement transaction data set */
data Trans3;
input Part $8.
Req 8.0
;
datalines;
LAXX 1
B100 1
B101 0
B102 0
S100 1
S101 0
S102 0
S103 0
S104 0
S105 0
S106 0
S107 0
A100 1
A101 0
;
proc sort data=Trans3;
by Part;
run;
/* Update the gross requirement values of the */
/* single-level BOM data set */
data SlBOM3(drop=OldReq);
merge SlBOM2(rename=(Req=OldReq)) Trans3(in=in2);
by Part;
if not in2 then Req=OldReq;
run;
The following code invokes PROC BOM with the new input data set. The summarized bill of material is shown in Output 1.3.1:
/* Generate the indented BOM and Summarized BOM */
proc bom data=SlBOM3 out=IndBOM3 summaryout=SumBOM3;
structure / part=Part
requirement=Req
leadtime=LeadTime
component=Component
quantity=QtyPer
id=(Desc Unit);
run;
/* Sort and display the summarized BOM data */
proc sort data=SumBOM3;
by _Part_;
run;
proc print data=SumBOM3(where=(Net_Req NE 0)) noobs;
title 'ABC Lamp Company';
title3 'Summarized Bill of Material, Part LA01';
run;
Output 1.3.1: Summarized Bills of Material
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.