;Header 2
; No Parameters.
; Output:
; generates a DATA line for writing by WRITE^INHMGD1, with the
; segment column labels. Used after the segment header and on each
; page after the page header.
; 12,"-" CHCS 11,"-"
IN(INDA,INP)
;Entere here with INDA= ien of message to process one message.
; Input:
; INDA = Internal Entry Number (IEN) of message
; INP = Flag, +INP>0 means create tab-delimited output,
; for exporting to desk-top applications, like MS-Access.
; Also, $E(INP,2,999) contains tab delimited Message and
; Segment information. Will be copied to INPDATA for printing.
WRITE
;output a line
; Input:
; DATA = passed globally, is a quoted line for use with W @DATA
HEADER
;output header in local array INHDR(x)
; No Parameters.
; Description: The function HEADER is used to display the header
; when reaching the end of the page/screen, and give
; the user the option to continue or to abort.
DASH(QTY,CH)
;Extrensic. Creates QTY copies of CH
; Inputs:
; QTY = numeric integer, how many copies of CH do you want in the
; output string.
; CH = character you want repeated. defaults to "-", hence the
; name DASH, but " " or anything else is ok.
; Output:
LKPRM(INX)
;Extrensic. Converts lookup parameter F,L,N,O & P to long form
HSET
;set up header
; No Parameters.
; Description: The function HSET is used to set up the header with
; the current page and current date/time.
; Return:
; globally creates the INHDR array, containing quoted DATA strings
; for use by WRITE^INHMGD1.
YN(INV,INN)
;Extrensic. Converts "" and 0 to NO and 1 to YES
; Inputs:
; INV = the value ["",0,1] to be converted to YES/NO or Y/N
; INN = control: 1 for "YES"/"NO", 0 for "Y"/"N"