Vous êtes sur la page 1sur 1

One Item may be stocked or stored at multiple-locations or warehouses.

Stock-Location segment represents the list of the locations, where an item is


stored or stocked. Each Location is identified by a 3-character alphanumeric code.
At every location, important-details about the inventory such as what is the
quantity-on-hand, what is reorder-point, what is the quantity-on-order, and the
last re-order date is recorded.

This picture shows, how I wrote the DBD Source-Code for the Stock-Location Segment.

image

The COBOL Copy-Book Layout(A Separate Mainframe File) corresponding to the above
Stock-Location Fields, is in the snap below.

image
Q. How do I assemble and Link the above DBD Macros?
I have the following setup at my shop. I have created a Library(PDS) for storing
the DBD Macro Source-Codes called IMS810.DBDSRC. I have keyed in my DBD Source-code
in a Member INVDBD, under the Source Library. I have another Library(PDS), which
will contain the corresponding DBD Control-Blocks Load Modules, which are produced
after assembling the source-code. My DBD Load-Library is IMS810.DBDLIB. Before you
run the assemble-link job, you should have your own personal DBD-Source and Load-
Libraries setup.

One Vendor may supply several Items. Item Segment represents the list of the Items,
which a Vendor supplies. Every Item has an Item-Name, a short description, unit-
price or cost of the Item and the average cost of the Items. Here�s the DBD Source-
code for the ITEMSSEG Segment.

image

The COBOL Copy-Book Layout(a Separate Mainframe File) corresponding to the Above
ITEMSSEG, is shown below.

Vous aimerez peut-être aussi