|
ROOT=root, IN=SAS-data-set, LEV=variable, PARENT=variable, |
COMP=variable, QUANTITY=variable, QTYPROD=variable, |
|
RID=variables, QTYREQ=qtyreq, REQ=req, |
|
OUT=SAS-data-set, DROP=variables); |
constructs a summarized bill of material for a given item referred to as the item Root, which lists all the components and their quantities used to make units of the item Root, where is the value specified in the REQ= parameter. Unlike the indented bill of material, it does not list the levels of manufacture and lists a component only once for the total quantity used (Cox and Blackstone 1998). Note that the summarized bill of material created by this macro is more general than the one described in Chapter 3, where the total quantity used of each component is for making unit of the item Root. The form of the summarized bill of material constructed by this macro enables you to determine how a future order for units of the item Root will impact inventory levels. The parameters for this macro are as follows:
The input data set of this macro is the Indented BOM data set described in Input Data Sets.
The following parameters specify the variables in the input data set that are required by the %BOMRSUB
macro.
A character or numeric variable that contains the part number of the component.
A numeric variable that contains the indenture level information.
A numeric variable that contains the quantity per product information.
The following parameters specify the variables in the Indented BOM input data set that are used by the macro, if they can be found in the data set.
A character or numeric variable that contains the part number of the parent item. The type of this variable must be the same as that of the variable specified in the COMP= parameter.
A numeric variable that contains the quantity per assembly information.
Variables that contain product structure information, except for those specified in the PARENT=, COMP=, or QUANTITY= parameters. These variables are only needed in creating the default drop variables.
Variables that you do not want to be included in the output data set.
The output data set contains the summarized bill of material for the item Root. This data set has the same variables as the Indented BOM data set, except for those variables specified in the DROP= parameter. The output data set contains a new variable with the name specified by the following parameter:
A numeric variable that contains the quantity of the component identified by the Component variable that is used to produce units of the item Root, where is the value specified in the REQ= parameter.
Upon completion, this macro defines a macro variable, _BOMRSUB_
, which contains a character string that indicates the status of the macro execution. See Macro Variables for the possible values of this macro variable.
The following statement constructs a summarized bill of material for the item 'LA01
' from the Indented BOM data set displayed in Figure 4.1.
%bomrsub(root='LA01', in=IndBOM, quantity=QtyPer, qtyreq=QtyReq, rid=SDate EDate LTOff Fscrap, req=50, out=BomOut5);
The summarized bill of material for the item 'LA01
' is displayed in Figure 4.6. Note that a summarized bill of material lists a component only once for the total quantity used. For example, the total
quantity of units of the item '1400
' comes from units that are for making units of 'B100
', and units that are for producing units of '1500
'.
Figure 4.6: Summarized Bill of Material for Item LA01 (BomOut5)
ABC Lamp Company |
%BOMRSUB macro |
Summarized Bill of Material, Part LA01: Requirement=50 |
_Part_ | Desc | Unit | LeadTime | QtyReq |
---|---|---|---|---|
1100 | Finished shaft | Each | 2 | 50 |
1200 | 6-Diameter steel plate | Each | 3 | 50 |
1300 | Hub | Each | 2 | 50 |
1400 | 1/4-20 Screw | Each | 1 | 300 |
1500 | Steel holder | Each | 2 | 50 |
1600 | One-way socket | Each | 2 | 50 |
1700 | Wiring assembly | Each | 1 | 50 |
2100 | 3/8 Steel tubing | Inches | 3 | 1300 |
2200 | 16-Gauge lamp cord | Feet | 2 | 600 |
2210 | 14-Gauge lamp cord | Feet | 2 | 600 |
2300 | Standard plug terminal | Each | 1 | 50 |
A100 | One-way socket assem. | Each | 1 | 50 |
B100 | Base assembly | Each | 1 | 50 |
S100 | Black shade | Each | 2 | 50 |