STRUCTURE Statement
- STRUCTURE / options ;
The STRUCTURE statement lists the variables in the input data set
(the Single-level BOM data set).
You should specify the
Part variable and at least one
Component variable.
All other variables are optional. In this statement, you can also
explicitly specify the parts that are to be used as the level-0 items.
-
COMPONENT=(variables)
- COMP=(variables)
-
specifies variables in the
input data set that name all of the components directly used in the
item identified by the Part variable.
These variables are also referred to as Component variables.
The Component variables must be of the same type, format,
and length as the Part variable.
At least one Component variable must be specified.
NOTE: This variable is case-sensitive when it is in character format.
-
ENDITEM=(enditems)
-
specifies the parts that are to be used as the highest level or
level-0 items in the indented bills
of material. In other words, this option can be used to construct
indented bills of material for subassemblies.
The values for enditems must be either numbers
(if the Part variable is numeric) or quoted strings (if the
Part variable is character). If you do not specify this option,
the procedure uses all final products as end items and builds an indented
BOM for each of these items.
-
ID=(variables)
-
identifies all variables not specified in the
COMPONENT=, LEADTIME=,
PART=, QTYONHAND=,
QUANTITY=, or REQUIREMENT=
options that are to be included in the
Indented BOM and the Summarized BOM
output data sets. These variables
are also referred to as ID variables. The ID= option
is useful for carrying any relevant information about each
part (identified by the Part variable)
from the Single-level BOM data set to the output data sets.
The ID variables cannot be named as Gros_Req,
_Level_, Low_Code, Net_Req, On_Hand,
Qty_Per, Qty_Prod, _Parent_, Paren_ID,
_Part_, Part_ID, _Prod_, or Tot_Lead.
-
LEADTIME=variable
- DUR=variable
-
identifies the variable in the input data set that contains
the lead time information for the part identified by the
Part variable. This variable is also referred
to as the LeadTime variable. The lead time of a part
is the length of time between recognition of the need for an order
of this part and the receipt of the parts. The variable specified
must be numeric. If you do not specify this option, PROC BOM
assumes the lead time for each part to be 0. The information in
the LeadTime variable is carried to the Indented BOM
output data set. Moreover, the procedure creates a new variable,
Tot_Lead, in the
Indented BOM data set if this option is
specified. See the "Indented Bills of Material Data Set" section for more information about the
Tot_Lead variable.
-
PART=variable
- ITEM=variable
-
specifies the variable in the input data set that names the
parent item. This variable is also referred to as the Part
variable. The Part variable can be either character or numeric.
You must specify the PART= option in the
STRUCTURE statement. All the information specified
by the ID variables corresponds to the part identified by the
Part variable. All the information in the Part variable,
except the name of the variable, is carried to the
Indented BOM and the Summarized BOM
output data sets.
The name of this variable is changed to _Part_
in both output data sets.
NOTE: This variable is case-sensitive when it is in character format.
-
QTYONHAND=variable
- INVENTORY=variable
-
identifies the variable in the input data set that contains the quantity
currently on hand for the part identified by the
Part variable. This variable is also
referred to as the QtyOnHand variable. The QtyOnHand
variable must be numeric. If you do not specify the QtyOnHand
variable, the procedure assumes that you do not have any items on hand.
In addition, the default name, On_Hand, is used for this variable.
The information in the QtyOnHand variable is carried to the
Summarized BOM output data set if the
SUMMARYOUT= option is specified.
-
QUANTITY=(variables)
- QTYPER=(variables)
-
identifies variables in the input data set that contain the quantity
of items identified by the Component variables
required to make 1 unit of the item identified by the
Part variable. These variables
are also referred to as the Quantity or QtyPer variables.
The variables
specified must be numeric and the number of Quantity variables must
be equal to the number of Component variables.
If you do not specify
these variables, the procedure assumes that you need 1 unit of each listed
component identified by a Component variable
to make 1 unit of the parent item identified by the
Part variable. If there is exactly one
Quantity variable, the information in this variable is carried to
the Indented BOM output data set. Otherwise, the
output data set uses the default name Qty_Per.
-
REQUIREMENT=variable
- GROSSREQ=variable
-
identifies the variable in the input data set that contains the gross
requirement of the part identified by the
Part variable.
This variable is also referred to as
the Requirement variable and must be
numeric. If you do not specify this option, the procedure assumes that
the gross requirement for all parts are missing except for the
final products. All final products are assumed to have gross
requirements of 1 unit. In addition, the default name,
Gros_Req, is used for this variable. The information in
this variable is carried to the Summarized BOM
output data set if the SUMMARYOUT= option is
specified.
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.