LR343 ;DALOI/JDB - LR*5.2*343 KIDS ROUTINE
Source file <LR343.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| EN | ;
 ; Environment Check ; Does not prevent loading of the transport global.  | 
|
| CHECK | ;
 ; Perform environment check  | 
|
| PRE | ;
 ; KIDS Pre Install ; Check that install was tasked ; Check if any File #69.9 fields are set to "YES" If so send ; notification email. ; Disable Lab Protocols (set DISABLED field and set ACTION to Q) ; Hang so current processes started by protocols can end  | 
|
| POST | ;
 ; KIDS Post Install ; Delete data in File #69.9 fields ; Remove #69.9 fields from Data Dictionary ; Email installation progress message  | 
|
| ALERT(MSG) | ;
 | 
|
| EMAIL(SUB,LRTXT,LRADDR) | ;
 ; Sends an email message via MailMan using installer's DUZ ; SUB <byval> Subject for the message ; LRTXT <byval> Closed root local or global array ; ie local array TEXT(1) passed as "TEXT" ; LRADDR <byref> MailMan compatable array of message recipients  | 
|
| BLDBODY(STR,ARR) | ;
 ; Adds a string to the end of the passed array ; Useful for building email message bodies ; STR <req> The string to add to the array ; ARR <byref> The array. Should be a simple, integer ; based subscript array ie X(1), X(2), etc.  | 
|
| GETVALS(NULL) | ;
 ; Returns the values for #69.9 fields 150.3,150.4,150.5 ; as a string ie 000 or 010 etc (each field is only 1 or 0)  | 
|
| UPDTPROT(IEN) | ;
 ; Sets the PROTOCOL's (#101) DISABLE field (#2) to DISABLED ; and its ENTRY ACTION field (#20) to Q (QUIT)  | 
|
| MSGADD(TXT,LB) | ;
 ; Utility to create a message global to save install ; messages and send later, usually via mailman. Useful ; when an install is tasked. It will print ; the messages out as they come in, as well as save them ; to the TMP global ; Input ; TXT <byref or byval> ; If $D(TXT)=1 then TXT is saved ; If $D(TXT)>9 then step through array and save each node ; as separate line. ; LB <opt> LineBreak (True then uses MBES -- False uses MES)  | 
|
| CLEAN | ;
 | 
|
| KILLDD(FIELD) | ;
 ; Deletes the #69.9 field's DD  | 
| Name | Line Occurrences | 
|---|---|
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| FileNo | Call Tags | 
|---|---|
| ^ORD(101 - [#101] | FIND1^DIC | 
| ^LAB(69.9 - [#69.9] | GETS^DIQ |