File:  [Coherent Logic Development] / freem_fileman / USER / DINIT126.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

DINIT126	;SFISC/TKW - INITIALIZE V21 SORT TEMPLATE DD NODES ;6/24/94  11:17
	;;21.0;VA FileMan;;Dec 28, 1994
	;Per VHA Directive 10-93-142, this routine should not be modified.
	F I=1:2 S X=$T(Q+I) Q:X=""  S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) S @X=Y
Q	Q
	;;^DD(.4014,21,21,11,0)
	;;=The flag is set automatically when the user is entering the sort fields in
	;;^DD(.4014,21,21,12,0)
	;;=^DIP, and the from/to values in ^DIP1.
	;;^DD(.4014,21,"DT")
	;;=2931221
	;;^DD(.40141,0)
	;;=MULTIPLE FIELD DATA SUB-FIELD^^1^2
	;;^DD(.40141,0,"DT")
	;;=2930201
	;;^DD(.40141,0,"IX","B",.40141,.01)
	;;=
	;;^DD(.40141,0,"NM","MULTIPLE FIELD DATA")
	;;=
	;;^DD(.40141,0,"UP")
	;;=.4014
	;;^DD(.40141,.01,0)
	;;=MULT.FILE OR SUBFILE NO.^MNJ13,5^^0;1^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
	;;^DD(.40141,.01,1,0)
	;;=^.1
	;;^DD(.40141,.01,1,1,0)
	;;=.40141^B
	;;^DD(.40141,.01,1,1,1)
	;;=S ^DIBT(DA(2),2,DA(1),1,"B",$E(X,1,30),DA)=""
	;;^DD(.40141,.01,1,1,2)
	;;=K ^DIBT(DA(2),2,DA(1),1,"B",$E(X,1,30),DA)
	;;^DD(.40141,.01,3)
	;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits.  This is the file/subfile number when sorting by a multiple field.
	;;^DD(.40141,.01,21,0)
	;;=^^4^4^2930201^
	;;^DD(.40141,.01,21,1,0)
	;;=All files or subfiles needed to get back up to the top level from a
	;;^DD(.40141,.01,21,2,0)
	;;=multiple field will be represented by an entry in this field.  The
	;;^DD(.40141,.01,21,3,0)
	;;=file or subfile number will be used as a subscript in the DPP array
	;;^DD(.40141,.01,21,4,0)
	;;=during the sort/print processing.
	;;^DD(.40141,.01,"DT")
	;;=2930201
	;;^DD(.40141,1,0)
	;;=NODE^F^^0;2^K:$L(X)>50!($L(X)<1) X
	;;^DD(.40141,1,3)
	;;=Answer must be 1-50 characters in length.  This is the node from which the data is descendant.
	;;^DD(.40141,1,21,0)
	;;=^^1^1^2930201^
	;;^DD(.40141,1,21,1,0)
	;;=This field contains the node from which the multiple data is descendant.
	;;^DD(.40141,1,"DT")
	;;=2930201
	;;^DD(.401418,0)
	;;=RELATIONAL JUMP FIELD DATA SUB-FIELD^^5^6
	;;^DD(.401418,0,"DT")
	;;=2930201
	;;^DD(.401418,0,"IX","B",.401418,.01)
	;;=
	;;^DD(.401418,0,"NM","RELATIONAL JUMP FIELD DATA")
	;;=
	;;^DD(.401418,0,"UP")
	;;=.4014
	;;^DD(.401418,.01,0)
	;;=RELATIONAL START FILE NO.^MNJ13,5^^0;1^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
	;;^DD(.401418,.01,1,0)
	;;=^.1
	;;^DD(.401418,.01,1,1,0)
	;;=.401418^B
	;;^DD(.401418,.01,1,1,1)
	;;=S ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)=""
	;;^DD(.401418,.01,1,1,2)
	;;=K ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)
	;;^DD(.401418,.01,3)
	;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits
	;;^DD(.401418,.01,21,0)
	;;=^^3^3^2930201^^^^
	;;^DD(.401418,.01,21,1,0)
	;;=Data will appear here if sorting by a field that must be gotten to using
	;;^DD(.401418,.01,21,2,0)
	;;=a relational jump.  This will be the file or subfile number from which
	;;^DD(.401418,.01,21,3,0)
	;;=the user is jumping (i.e., the starting point).
	;;^DD(.401418,.01,23,0)
	;;=^^1^1^2930201^
	;;^DD(.401418,.01,23,1,0)
	;;=Built in COLON^DIP0 during the sort/print.
	;;^DD(.401418,.01,"DT")
	;;=2930201
	;;^DD(.401418,1,0)
	;;=NEXT SUBSCRIPT^RNJ7,0^^0;2^K:+X'=X!(X>9999999)!(X<0)!(X?.E1"."1N.N) X
	;;^DD(.401418,1,3)
	;;=Type a Number between 0 and 9999999, 0 Decimal Digits.  Subscript used in the DPP array during the sort/print option.
	;;^DD(.401418,1,21,0)
	;;=^^4^4^2930201^
	;;^DD(.401418,1,21,1,0)
	;;=This field contains a subscript used n the DPP array during the
	;;^DD(.401418,1,21,2,0)
	;;=sort/print.  The subscript is generated by DICOMP (using the level
	;;^DD(.401418,1,21,3,0)
	;;=number multiplied by 100 I think).  It results in building a node
	;;^DD(.401418,1,21,4,0)
	;;=like DPP(DJ,file/subfile no.,subscript)=data.
	;;^DD(.401418,1,23,0)
	;;=^^1^1^2930201^
	;;^DD(.401418,1,23,1,0)
	;;=Built by COLON^DIP0 routine.
	;;^DD(.401418,1,"DT")
	;;=2930201
	;;^DD(.401418,2,0)
	;;=TO FILE OR SUBFILE^NJ13,5^^0;3^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
	;;^DD(.401418,2,3)
	;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits.  The file or subfile number to which we are jumping using a relational jump.
	;;^DD(.401418,2,21,0)
	;;=^^2^2^2930201^
	;;^DD(.401418,2,21,1,0)
	;;=This field contains the file or subfile number to which we are making
	;;^DD(.401418,2,21,2,0)
	;;=the relational jump (i.e., the destination file).
	;;^DD(.401418,2,23,0)
	;;=^^1^1^2930201^^
	;;^DD(.401418,2,23,1,0)
	;;=Built in COLON^DIP0 during the sort/print.
	;;^DD(.401418,2,"DT")
	;;=2930201
	;;^DD(.401418,3,0)
	;;=GLOBAL REFERENCE^F^^0;4^K:$L(X)>50!($L(X)<1) X
	;;^DD(.401418,3,3)
	;;=Answer must be 1-50 characters in length.  Contains the global reference of the file to which we are jumping relationally.

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