|
ROOT=root, IN=SAS-data-set, PARENT=variable, |
COMP=variable, OUT=SAS-data-set, DROP=variables); |
constructs a single-level bill of material for a given item referred to as the item Root, which lists all components that are directly used in the item Root. 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 %BOMRSLB
macro.
A character or numeric variable that contains the part number of the component.
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.
The following parameter specifies the variables in the Indented BOM input data set that are used by the macro, if they can be found in the data set.
Variables that you do not want to be included in the output data set.
The output data set contains the single-level bill of material for the item Root. This data set has the same variables as the Indented BOM data set, except for those variables that are specified in the DROP= parameter.
Upon completion, this macro defines a macro variable, _BOMRSLB_
, 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 bill of material for the item 'B100
' from the Indented BOM data set displayed in Figure 4.1.
%bomrslb(root='B100', in=IndBOM, out=BomOut3);
The single-level bill of material for the item 'B100
' is displayed in Figure 4.4.
Figure 4.4: Single-Level Bill of Material for Item B100 (BomOut3)
ABC Lamp Company |
%BOMRSLB macro |
Single-Level Bill of Material, Part B100 |
_Parent_ | _Part_ | Desc | QtyPer | Fscrap | Unit | LeadTime | LTOff | SDate | EDate |
---|---|---|---|---|---|---|---|---|---|
B100 | 1100 | Finished shaft | 1 | 0 | Each | 2 | 0 | . | . |
B100 | 1200 | 6-Diameter steel plate | 1 | 0 | Each | 3 | 0 | . | . |
B100 | 1300 | Hub | 1 | 0 | Each | 2 | 1 | . | . |
B100 | 1400 | 1/4-20 Screw | 4 | 0 | Each | 1 | 3 | . | . |