VIAB GETSURR

TITLEVALUE
NAMEVIAB GETSURR
DESCRIPTIONThis RPC returns information about a user's surrogate, including start and
end date/times if they are specified.
TAGGETSURR
ROUTINEVIABRPC
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERUSER
DESCRIPTIONThis is the user internal entry number (IEN) in the NEW PERSON file.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH

RETURN VALUE TYPESINGLE VALUE
RETURN PARAMETER DESCRIPTIONThe value returned is of the form
RESULT=ien^NAME^FM_STARTDATE^FM_ENDDATE

where ien is the internal entry number of the SURROGATE in
the NEW PERSON file, NAME is the contents of the .01 field for
the SURROGATE, FM_STARTDATE is the starting date/time for the
SURROGATE in internal Filemanager format, and FM_ENDDATE is
the ending date/time for the SURROGATE in internal Filemanager
format.
S USER=124
D GETSURR^VIABRPC(.RESULT,USER)

might yield a value of RESULT containing

2327^DOE,JOHN^3160229.1630^3181006.0800
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes