DSIYGNI7 ITSCH INV ITEM SCH

TITLEVALUE
NAMEDSIYGNI7 ITSCH INV ITEM SCH
DESCRIPTIONITSCH

Item search for Inventory which allows search for an item within a
distribution point by various fields and allows a "contains" search for
some of the search types

NOTE: When this search is used to ADD items to a Primary Distribution
Point (items are searched in the ITEM MASTER) or to a Secondary
Distribution Point (items are searched in the Primary Distribution Point)
- only items which DO NOT EXIST in the target Distribution Point will be
shown.
TAGITSCH
ROUTINEDSIYGNI7
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERTERM
DESCRIPTIONTERM

Search term (20 character max)
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH20

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSCHBY
DESCRIPTIONSCHBY

Type of search - allowable values are:

I: Item IEN
NM Item or Synonym name (Contains allowed)
NS NSN # (can use first part or last 7 digits)
G Group Category code (Contains allowed)
ST Main storage location (Contains allowed)
MV Mandatory Vendor (Contains allowed)
MS Mandatory Source (Contains allowed)
UI Unit of Issue (Contains allowed)
NF NIF Number (Contains allowed)
VS Vendor Stock # (Contains allowed)
FS FSC # (Contains allowed)
IN INC (Contains allowed)
AL Search by all

If a search shows "contains allowed", the user can search within the data
for the TERM entered - this search will be slower.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH2

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERDPIEN
DESCRIPTIONDPIEN

Depending on the type of search, this shows the distribution points:

When Searching for an item that EXISTS in a Primary Distribution Point:
DPIEN = "P:PRIMARY IEN"

When Searching for an item that EXISTS in a Secondary Distribution Point:
DPIEN = "S:SECONDARY IEN"

When searching the ITEM MASTER file to ADD an item to a Primary DP:
DPIEN = "IM:PRIMARY IEN"

When searching the Primary DP to ADD an item to a Secondary DP:
DPIEN = "P:PRIMARY IEN:S:SECONDARY IEN"

When searching for an item that EXISTS in the ITEM MASTER file:
DPIEN = "IMSCH"
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH20

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERNOREC
DESCRIPTIONNOREC

Number of records to return, if nothing sent will default to 1000
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH4

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERSCHTXT
DESCRIPTIONSCHTXT

If set to "1" look for the TERM within any strings - not just at the
beginning of strings.

This is not allowed for all search types.

This search will be slower
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER6
INPUT PARAMETERACT
DESCRIPTIONACT

Leave blank or set to 1 if only active inventory items to be returned.
Entering "N" for this returns all items whether active or not.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER7
INPUT PARAMETERSTRTREC
DESCRIPTIONThe IEN of the record that was returned in the prior search. The next
proceding record will be the first returned that matches the search
criteria.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH

RETURN VALUE TYPEGLOBAL ARRAY
RETURN PARAMETER DESCRIPTIONRETURN PARAMETER

DSIYRET(1)="0^ If there are warnings/no data
DSIYRET(1)="-1^ If there are errors
DSIYRET(ITIEN)=
P1: ITIEN
P2: ITEM DESCRIPTION (441) or (445)
P3: NSN
P4: GROUP (Only returned for Primary DP top-level search)
P5: NIF
Pieces 6-14 are only returned with values when doing a top-level search
at the Primary Distribution Point (meaningless otherwise)
P6: O/H
P7: D/I
P8: D/O
P9: NORMAL STOCK LEVEL
P10: EMERGENCY STOCK LEVEL
P11: TEMP STOCK LEVEL
P12: STANDARD REORDER POINT
P13: OPTIONAL REORDER POINT
P14: MAIN STORAGE LOCATION
Pieces 15-17 are only returned when searching through the ITEM MASTER
FILE using IMSCHFILE
P15: FSC
P16: INC
P17: SKU
P18: DATE INACTIVATED
Piece 19 is used for recognizing Prosthetic Items
P19: HCPCS CODE
Pieces 20-21 are for all
P20: VENDOR LAST ORDERED
P21: STOCK #
P22: ON DEMAND
P23: UNIT OF ISSUE
P24: DETACH FLAG
AVAILABILITY
INACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED