|
ROOT=root, IN=SAS-data-set, PARENT=variable, |
COMP=variable, QUANTITY=variable, PARENID=variable, |
|
PARTID=variable, RID=variables, QTYUSED=qtyused, |
|
OUT=SAS-data-set, DROP=variables); |
constructs a single-level where-used list for a given item referred to as the item Root, which lists each parent item in which the item Root is directly used and in what quantity. 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 %BOMRSLW
macro.
A character or numeric variable that contains the part number of the component.
A numeric variable that contains the ID number for the parent record.
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 ID number for the current record.
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 numeric variable that contains the quantity per assembly information.
Variables that contain product structure information, except for those specified in the COMP=, PARENT=, or QUANTITY= parameters.
Variables that you do not want to be included in the output data set.
The output data set contains the single-level where-used list for the item Root. This data set has the same variables as the Indented BOM data set, except for the variables specified in the DROP= parameter. If both values for the QUANTITY= and QTYUSED= parameters are not null, 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 item Root that is used in the parent item identified by the Component variable.
Upon completion, this macro defines a macro variable, _BOMRSLW_
, 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 single-level where-used list for the item '1400
' from the Indented BOM data set displayed in Figure 4.1.
%bomrslw(root='1400', in=IndBOM, quantity=QtyPer, rid=SDate EDate, qtyused=QtyUsed, out=BomOut4);
The single-level where-used list for the item '1400
' is displayed in Figure 4.5.
Figure 4.5: Single-Level Where-Used List for Item 1400 (BomOut4)
ABC Lamp Company |
%BOMRSLW macro |
Single-Level Where-Used List, Part 1400 |
_Parent_ | Desc | QtyUsed | Fscrap | Unit | LeadTime | LTOff | SDate | EDate |
---|---|---|---|---|---|---|---|---|
1500 | Steel holder | 2 | 0 | Each | 2 | 0 | . | . |
B100 | Base assembly | 4 | 0 | Each | 1 | 0 | . | . |