Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DINIT08

DINIT08.m

Go to the documentation of this file.
  1. DINIT08 ;SFISC/TKW - BRING DD FOR FILE .83, COMPILED ROUTINE ;9/9/94 13:33
  1. ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
  1. ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
  1. ;;Licensed under the terms of the Apache License, Version 2.0.
  1. ;
  1. F I=1:2 S X=$T(Q+I) G:X="" ^DINIT12 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
  1. Q Q
  1. ;;^DIC(.83,0,"GL")
  1. ;;=^DI(.83,
  1. ;;^DIC("B","COMPILED ROUTINE",.83)
  1. ;;=
  1. ;;^DIC(.83,"%D",0)
  1. ;;=^^5^5^2940908^
  1. ;;^DIC(.83,"%D",1,0)
  1. ;;=This file stores information used for creating compiled SORT routines.
  1. ;;^DIC(.83,"%D",2,0)
  1. ;;=During the FileMan SORT/PRINT option, if the user has specified that a
  1. ;;^DIC(.83,"%D",3,0)
  1. ;;=sort template is compiled, a routine name is generated by concatenating
  1. ;;^DIC(.83,"%D",4,0)
  1. ;;="DIZS" with the next available number from this list. A flag indicates
  1. ;;^DIC(.83,"%D",5,0)
  1. ;;=whether or not a number is currently in use.
  1. ;;^DD(.83,0)
  1. ;;=FIELD^^1^2
  1. ;;^DD(.83,0,"DDA")
  1. ;;=N
  1. ;;^DD(.83,0,"DT")
  1. ;;=2930331
  1. ;;^DD(.83,0,"IX","B",.83,.01)
  1. ;;=
  1. ;;^DD(.83,0,"IX","C",.83,1)
  1. ;;=
  1. ;;^DD(.83,0,"NM","COMPILED ROUTINE")
  1. ;;=
  1. ;;^DD(.83,.01,0)
  1. ;;=ROUTINE NUMBER^RNJ4,0X^^0;1^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X S:$D(X) DINUM=X
  1. ;;^DD(.83,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.83,.01,1,1,0)
  1. ;;=.83^B
  1. ;;^DD(.83,.01,1,1,1)
  1. ;;=S ^DI(.83,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.83,.01,1,1,2)
  1. ;;=K ^DI(.83,"B",$E(X,1,30),DA)
  1. ;;^DD(.83,.01,3)
  1. ;;=Type a Number between 1 and 9999, 0 Decimal Digits
  1. ;;^DD(.83,.01,21,0)
  1. ;;=^^5^5^2930331^^^
  1. ;;^DD(.83,.01,21,1,0)
  1. ;;=This is a number that can be used to generate the name of a compiled
  1. ;;^DD(.83,.01,21,2,0)
  1. ;;=SORT routine. The literal 'DIZS' is concatenated with the number to form
  1. ;;^DD(.83,.01,21,3,0)
  1. ;;=a compiled sort routine name. The routine will be in use only during
  1. ;;^DD(.83,.01,21,4,0)
  1. ;;=the running of a sort/print. After the print completes, the number
  1. ;;^DD(.83,.01,21,5,0)
  1. ;;=is again made available for use.
  1. ;;^DD(.83,.01,23,0)
  1. ;;=^^4^4^2930331^^
  1. ;;^DD(.83,.01,23,1,0)
  1. ;;=Generated and used during the FileMan sort/print option. Manipulated
  1. ;;^DD(.83,.01,23,2,0)
  1. ;;=in routine DIOZ, that is called from DIO1. DIOZ checks a
  1. ;;^DD(.83,.01,23,3,0)
  1. ;;=cross-reference on the 'IN USE' flag to find the next available number.
  1. ;;^DD(.83,.01,23,4,0)
  1. ;;=If none are available, a new one is added to the file.
  1. ;;^DD(.83,.01,"DT")
  1. ;;=2930719
  1. ;;^DD(.83,1,0)
  1. ;;=IN USE^S^y:YES, NUMBER IS IN USE;n:NOT IN USE;^0;2^Q
  1. ;;^DD(.83,1,1,0)
  1. ;;=^.1
  1. ;;^DD(.83,1,1,1,0)
  1. ;;=.83^C
  1. ;;^DD(.83,1,1,1,1)
  1. ;;=S ^DI(.83,"C",$E(X,1,30),DA)=""
  1. ;;^DD(.83,1,1,1,2)
  1. ;;=K ^DI(.83,"C",$E(X,1,30),DA)
  1. ;;^DD(.83,1,1,1,"%D",0)
  1. ;;=^^3^3^2930331^
  1. ;;^DD(.83,1,1,1,"%D",1,0)
  1. ;;=This cross-reference is used to control when a routine number is available
  1. ;;^DD(.83,1,1,1,"%D",2,0)
  1. ;;=for use in creating a compiled sort routine, during the FileMan sort/print
  1. ;;^DD(.83,1,1,1,"%D",3,0)
  1. ;;=option.
  1. ;;^DD(.83,1,1,1,"DT")
  1. ;;=2930331
  1. ;;^DD(.83,1,21,0)
  1. ;;=^^6^6^2930331^^
  1. ;;^DD(.83,1,21,1,0)
  1. ;;=During the running of the FileMan sort/print, if the sort is compiled,
  1. ;;^DD(.83,1,21,2,0)
  1. ;;=a cross-reference on this flag is checked to find the first available
  1. ;;^DD(.83,1,21,3,0)
  1. ;;=number that is not in use. The number is then marked in use and is
  1. ;;^DD(.83,1,21,4,0)
  1. ;;=concatenated on the end of literal 'DIZS' to create the routine name
  1. ;;^DD(.83,1,21,5,0)
  1. ;;=of the compiled routine. After the sort/print completes, the flag is
  1. ;;^DD(.83,1,21,6,0)
  1. ;;=then reset to 'NOT IN USE'.
  1. ;;^DD(.83,1,23,0)
  1. ;;=^^5^5^2930331^^
  1. ;;^DD(.83,1,23,1,0)
  1. ;;=Manipulated in routine DIOZ that is called from the FileMan sort routine
  1. ;;^DD(.83,1,23,2,0)
  1. ;;=DIO1. The cross-reference on this field is used to control when a number
  1. ;;^DD(.83,1,23,3,0)
  1. ;;=is available for use to create a compiled sort routine name. After
  1. ;;^DD(.83,1,23,4,0)
  1. ;;=the sort/print runs, the flag is set back to NOT IN USE so that the
  1. ;;^DD(.83,1,23,5,0)
  1. ;;=number is again available.
  1. ;;^DD(.83,1,"DT")
  1. ;;=2930331