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 (5 weeks, 4 days ago) by snw
Branches: MAIN
CVS tags: HEAD
Restructure repository

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

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