KMPD FILE SEARCH (1808)    REMOTE PROCEDURE (8994)

Name Value
NAME KMPD FILE SEARCH
TAG FILESRC
ROUTINE KMPDU5
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
DESCRIPTION
Search for entries in file.
INPUT PARAMETER
  • PARAM1
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   60
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    File Number.
    
  • PARAM2
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   245
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Fields to return.  This will be comma delimited.
     
    Example:  ".01,.04,1,12"  - would return fields .01, .01, 1 and 12
    
  • PARAM3
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   245
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Text to search for.
     
    Example:  "DG" - would retrieve all entries beginning with DG.
     
                   - if text equals "*" or "" (null) then all entries will be 
                     retrieved
    
  • PARAM4
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   245
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Name of array for temporary storage.  This should be a global array, and
    must be either ^TMP or ^UTILITY.
    
RETURN PARAMETER DESCRIPTION
Array with data from file in format:
 
       ARRAY(0)=IEN^FieldName^FieldName^FieldName^...
       ARRAY(...)=IEN^FieldData^FieldData^FieldData^...
 
Please Note:  - the first piece is always the IEN (internal entry number).
              - the zero node is always the names of the fields, once
                again with the IEN's being first.