SDES2JSON ;ALB/MGD - VISTA SCHEDULING JSON UTILITIES ;July 3, 2023
Source file <SDES2JSON.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
BUILDJSON(SDRETURN,RETURN) | ;
|
|
ENCODE(SDESINP,SDESOUT,SDESERR) | ;
; Input: SDESINP = Required: Properly formatted input array to convert to JSON ; SDESOUT = Required: Name of string to return to Broker ; SDESERR = Optional: Name of string for error messages. ; Output: ; SDESOUT = JSON formatted string ; SDESERR = Still under development by Kernel |
|
ERRLOG(SDESIN,SDESERRNUM,SDESOPTMSG,SDESRINFO) | ;
; Input: SDESIN = Required: Array name with related data to be logged ; SDESERRNUM = Required: Error # to return ; SDESOPTMSG = Optional message string to append to existing error in table ; SDESRINFO = Optional message string with Routine^Tag info to append to existing error in table |
|
ERRLKUP(SDNUM,SDESOPTMSG,SDESRINFO) | ;
|
FileNo | Call Tags |
---|---|
^SDEC(409.93 - [#409.93] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^SDEC(409.93 - [#409.93] | ERRLKUP+2 |
Name | Line Occurrences |
---|---|
$$ERRLKUP | ERRLOG+10 |
ERRLOG | ENCODE+9 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
JSONERROR | BUILDJSON+1~ |
RETURN | BUILDJSON~ |
SDERRIEN | ERRLKUP+1~, ERRLKUP+2*, ERRLKUP+3 |
SDERRMSG | ERRLKUP+1~, ERRLKUP+3*, ERRLKUP+4*, ERRLKUP+8*, ERRLKUP+9*, ERRLKUP+10*, ERRLKUP+12*, ERRLKUP+13 |
SDESCNT | ERRLOG+5~, ERRLOG+9*, ERRLOG+10 |
SDESERR | ENCODE~ |
SDESERRNUM | ERRLOG~, ERRLOG+8*, ERRLOG+10 |
SDESIN | ERRLOG~, ERRLOG+7 |
SDESIN("Error" | ERRLOG+7*, ERRLOG+9, ERRLOG+10*, ERRLOG+11! |
SDESINP | ENCODE~, ENCODE+9 |
SDESOPTMSG | ERRLOG~, ERRLOG+6*, ERRLOG+10, ERRLKUP~, ERRLKUP+5, ERRLKUP+7*, ERRLKUP+9 |
SDESOUT | ENCODE~ |
SDESRINFO | ERRLOG~, ERRLOG+6*, ERRLOG+10, ERRLKUP~, ERRLKUP+12 |
SDNUM | ERRLKUP~, ERRLKUP+2 |
SDRETURN | BUILDJSON~ |