File:  [Coherent Logic Development] / freem_fileman / USER / DIFGSRV.m
Revision 1.1: download - view: text, annotated - select for diffs
Mon Apr 28 14:13:20 2025 UTC (3 months ago) by snw
Branches: MAIN
CVS tags: HEAD
Restructure repository

    1: DIFGSRV	;SFISC/RWF-SERVER INTERFACE TO FILEGRAMS ;
    2: 	;;21.0;VA FileMan;;Dec 28, 1994
    3: 	;Per VHA Directive 10-93-142, this routine should not be modified.
    4: 	Q
    5: HIST	;Add a message to the FileGram History file so it can be processed.
    6: 	S DIXM=0,U="^" X XMREC ;get first line
    7: 	I $P(XMRG,U)'="$DAT" S DIXM=DIXM+1,XQSTXT(DIXM)="First line of message doesn't start with '$DAT'"
    8: 	S DIFG=$P(XMRG,U,3)
    9: 	I DIFG<2 S DIXM=DIXM+1,XQSTXT(DIXM)="Can't update a VA FileMan file."
   10: 	I "^2^3^19^"[(U_DIFG_U) S DIXM=DIXM+1,XQSTXT(DIXM)="Update to a protected file (#"_DIFG_")."
   11: 	Q:DIXM
   12: 	S DIFG("FE")=+$P(XQSUB,"#",2),DIFG("TEMPLATE")="",DIFG("DUZ")=XMFROM
   13: 	D LOG^DIFGG
   14: 	Q

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>