Annotation of freem_fileman/DINIT120.m, revision 1.1
1.1 ! snw 1: DINIT120 ;SFISC/TKW - INITIALIZE V21 SORT TEMPLATE DD NODES ;11/4/94 09:44
! 2: ;;21.0;VA FileMan;;Dec 28, 1994
! 3: ;Per VHA Directive 10-93-142, this routine should not be modified.
! 4: 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
! 5: Q Q
! 6: ;;^DIC(.401,0,"GL")
! 7: ;;=^DIBT(
! 8: ;;^DIC("B","SORT TEMPLATE",.401)
! 9: ;;=
! 10: ;;^DIC(.401,"%D",0)
! 11: ;;=^^4^4^2940908^^
! 12: ;;^DIC(.401,"%D",1,0)
! 13: ;;=This file stores either SORT or SEARCH criteria. For SORT criteria, the
! 14: ;;^DIC(.401,"%D",2,0)
! 15: ;;=SORT DATA multiple contains the sort parameters. For SEARCH criteria, the
! 16: ;;^DIC(.401,"%D",3,0)
! 17: ;;=template also contains a list of record numbers selected as the result of
! 18: ;;^DIC(.401,"%D",4,0)
! 19: ;;=running the search.
! 20: ;;^DD(.401,0)
! 21: ;;=FIELD^^1819^18
! 22: ;;^DD(.401,0,"DDA")
! 23: ;;=N
! 24: ;;^DD(.401,0,"DI")
! 25: ;;=^
! 26: ;;^DD(.401,0,"DT")
! 27: ;;=2931221
! 28: ;;^DD(.401,0,"ID","WRITED")
! 29: ;;=I $G(DZ)?1"???".E N % S %=0 F S %=$O(^DIBT(Y,"%D",%)) Q:%'>0 I $D(^(%,0))#2 D EN^DDIOL(^(0),"","!?5")
! 30: ;;^DD(.401,0,"IX","B",.401,.01)
! 31: ;;=
! 32: ;;^DD(.401,0,"NM","SORT TEMPLATE")
! 33: ;;=
! 34: ;;^DD(.401,0,"PT",1.11,2)
! 35: ;;=
! 36: ;;^DD(.401,.01,0)
! 37: ;;=NAME^F^^0;1^K:$L(X)<2!($L(X)>30) X
! 38: ;;^DD(.401,.01,1,0)
! 39: ;;=^.1^2^2
! 40: ;;^DD(.401,.01,1,1,0)
! 41: ;;=.401^B
! 42: ;;^DD(.401,.01,1,1,1)
! 43: ;;=S @(DIC_"""B"",X,DA)=""""")
! 44: ;;^DD(.401,.01,1,1,2)
! 45: ;;=K @(DIC_"""B"",X,DA)")
! 46: ;;^DD(.401,.01,1,2,0)
! 47: ;;=^^MUMPS
! 48: ;;^DD(.401,.01,1,2,1)
! 49: ;;=X "S %=$P("_DIC_"DA,0),U,4) S:$L(%) "_DIC_"""F""_+%,X,DA)=1"
! 50: ;;^DD(.401,.01,1,2,2)
! 51: ;;=X "S %=$P("_DIC_"DA,0),U,4) K:$L(%) "_DIC_"""F""_+%,X,DA)"
! 52: ;;^DD(.401,.01,3)
! 53: ;;=2-30 CHARACTERS
! 54: ;;^DD(.401,9,0)
! 55: ;;=SEARCH COMPLETE DATE^D^^QR;1^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
! 56: ;;^DD(.401,9,3)
! 57: ;;=Enter the date/time that this search was run to completion.
! 58: ;;^DD(.401,9,21,0)
! 59: ;;=^^4^4^2921124^
! 60: ;;^DD(.401,9,21,1,0)
! 61: ;;= This field will be filled in automatically by the search option, but
! 62: ;;^DD(.401,9,21,2,0)
! 63: ;;=only if the search runs to completion. It will contain the date/time
! 64: ;;^DD(.401,9,21,3,0)
! 65: ;;=that the search last ran. If it was not allowed to run to completion,
! 66: ;;^DD(.401,9,21,4,0)
! 67: ;;=this field will be empty.
! 68: ;;^DD(.401,9,23,0)
! 69: ;;=^^1^1^2921124^^
! 70: ;;^DD(.401,9,23,1,0)
! 71: ;;=Filled in automatically by the FileMan search option.
! 72: ;;^DD(.401,9,"DT")
! 73: ;;=2921124
! 74: ;;^DD(.401,11,0)
! 75: ;;=TOTAL RECORDS SELECTED^NJ10,0^^QR;2^K:+X'=X!(X>9999999999)!(X<1)!(X?.E1"."1N.N) X
! 76: ;;^DD(.401,11,3)
! 77: ;;=Type a Number between 1 and 9999999999, 0 Decimal Digits
! 78: ;;^DD(.401,11,21,0)
! 79: ;;=^^5^5^2921125^^
! 80: ;;^DD(.401,11,21,1,0)
! 81: ;;= This field is filled in automatically by the FileMan search option.
! 82: ;;^DD(.401,11,21,2,0)
! 83: ;;=If the search is allowed to run to completion, the total number of
! 84: ;;^DD(.401,11,21,3,0)
! 85: ;;=records that met the search criteria is stored in this field. If the
! 86: ;;^DD(.401,11,21,4,0)
! 87: ;;=last search was not allowed to run to completion, this field will be
! 88: ;;^DD(.401,11,21,5,0)
! 89: ;;=null.
! 90: ;;^DD(.401,11,23,0)
! 91: ;;=^^1^1^2921124^
! 92: ;;^DD(.401,11,23,1,0)
! 93: ;;=Filled in automatically by the FileMan search option.
! 94: ;;^DD(.401,11,"DT")
! 95: ;;=2921125
! 96: ;;^DD(.401,1621,0)
! 97: ;;=SORT FIELD DATA^.4014^^2;0
! 98: ;;^DD(.401,1815,0)
! 99: ;;=ROUTINE INVOKED^F^^ROU;E1,13^K:$L(X)>5!($L(X)<5) X
! 100: ;;^DD(.401,1815,3)
! 101: ;;=Answer must be 5 characters in length.Must contain '^DISZ'.
! 102: ;;^DD(.401,1815,21,0)
! 103: ;;=^^7^7^2930331^^^
! 104: ;;^DD(.401,1815,21,1,0)
! 105: ;;= If this sort template is compiled, the first characters of the name
! 106: ;;^DD(.401,1815,21,2,0)
! 107: ;;=of that compiled routine will appear on this node. Compiled sort
! 108: ;;^DD(.401,1815,21,3,0)
! 109: ;;=routines are re-created each time the sort/print runs. These characters
! 110: ;;^DD(.401,1815,21,4,0)
! 111: ;;=are concatenated with the next available number from the COMPILED ROUTINE
! 112: ;;^DD(.401,1815,21,5,0)
! 113: ;;=file to create the routine name.
! 114: ;;^DD(.401,1815,21,6,0)
! 115: ;;= If this node is present, a new compiled sort routine will be created
! 116: ;;^DD(.401,1815,21,7,0)
! 117: ;;=during the FileMan sort/print.
! 118: ;;^DD(.401,1815,23,0)
! 119: ;;=^^3^3^2930331^^^
! 120: ;;^DD(.401,1815,23,1,0)
! 121: ;;=A routine beginning with these characters is created during the FileMan
! 122: ;;^DD(.401,1815,23,2,0)
! 123: ;;=sort/print. The routine is then called from DIO2 to do the sort, rather
! 124: ;;^DD(.401,1815,23,3,0)
! 125: ;;=than executing code from the local DY, DZ and P arrays.
! 126: ;;^DD(.401,1815,"DT")
! 127: ;;=2930416
! 128: ;;^DD(.401,1816,0)
! 129: ;;=PREVIOUS ROUTINE INVOKED^F^^ROUOLD;E1,13^K:$L(X)>4!($L(X)<4)!'(X?1"DISZ") X
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>