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

DINIT2B3.m

Go to the documentation of this file.
  1. DINIT2B3 ;SFISC/MKO-SQLI FILES ;10:51 AM 30 Mar 1999
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. 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
  1. G ^DINIT2B4
  1. Q Q
  1. ;;^DIC(1.5212,0,"GL")
  1. ;;=^DMSQ("DM",
  1. ;;^DIC("B","SQLI_DOMAIN",1.5212)
  1. ;;=
  1. ;;^DIC(1.5212,"%D",0)
  1. ;;=^^11^11^2970806^^
  1. ;;^DIC(1.5212,"%D",1,0)
  1. ;;=The set from which all objects of that domain must be drawn.
  1. ;;^DIC(1.5212,"%D",2,0)
  1. ;;=In SQLI, all table elements (SQLI_TABLE_ELEMENT) have a domain which
  1. ;;^DIC(1.5212,"%D",3,0)
  1. ;;=restricts them to their domain set. For each data type there is a domain
  1. ;;^DIC(1.5212,"%D",4,0)
  1. ;;=of the same name, representing the same set. Other domains have different
  1. ;;^DIC(1.5212,"%D",5,0)
  1. ;;=set membership restrictions.
  1. ;;^DIC(1.5212,"%D",6,0)
  1. ;;=
  1. ;;^DIC(1.5212,"%D",7,0)
  1. ;;=Each domain has a data type, which determines the rules for comparing
  1. ;;^DIC(1.5212,"%D",8,0)
  1. ;;=values from different domains, and the operators which may be used on them.
  1. ;;^DIC(1.5212,"%D",9,0)
  1. ;;=
  1. ;;^DIC(1.5212,"%D",10,0)
  1. ;;=The PRIMARY_KEY data type and domain is unique to SQLI. It is used to
  1. ;;^DIC(1.5212,"%D",11,0)
  1. ;;=relate primary keys to foreign keys unambiguously (see SQLI_TABLE_ELEMENT)
  1. ;;^DD(1.5212,0)
  1. ;;=FIELD^^11^12
  1. ;;^DD(1.5212,0,"DDA")
  1. ;;=N
  1. ;;^DD(1.5212,0,"DT")
  1. ;;=2970225
  1. ;;^DD(1.5212,0,"IX","B",1.5212,.01)
  1. ;;=
  1. ;;^DD(1.5212,0,"IX","C",1.5212,3)
  1. ;;=
  1. ;;^DD(1.5212,0,"IX","D",1.5212,11)
  1. ;;=
  1. ;;^DD(1.5212,0,"IX","E",1.5212,1)
  1. ;;=
  1. ;;^DD(1.5212,0,"NM","SQLI_DOMAIN")
  1. ;;=
  1. ;;^DD(1.5212,0,"PT",1.5216,1)
  1. ;;=
  1. ;;^DD(1.5212,0,"VRPK")
  1. ;;=DI
  1. ;;^DD(1.5212,.01,0)
  1. ;;=DM_NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'($TR(X,"_")?1U.UN) X
  1. ;;^DD(1.5212,.01,.1)
  1. ;;=Domain
  1. ;;^DD(1.5212,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(1.5212,.01,1,1,0)
  1. ;;=1.5212^B
  1. ;;^DD(1.5212,.01,1,1,1)
  1. ;;=S ^DMSQ("DM","B",$E(X,1,30),DA)=""
  1. ;;^DD(1.5212,.01,1,1,2)
  1. ;;=K ^DMSQ("DM","B",$E(X,1,30),DA)
  1. ;;^DD(1.5212,.01,3)
  1. ;;=Answer must be an SQL identifier 3-30 characters in length.
  1. ;;^DD(1.5212,.01,4)
  1. ;;=W ?5,"Must be a valid SQL identifier"
  1. ;;^DD(1.5212,.01,9)
  1. ;;=^
  1. ;;^DD(1.5212,.01,21,0)
  1. ;;=^^2^2^2970311^^^^
  1. ;;^DD(1.5212,.01,21,1,0)
  1. ;;=Name of FileMan domain
  1. ;;^DD(1.5212,.01,21,2,0)
  1. ;;=Includes names of standard SQL data types. Must not be a keyword.
  1. ;;^DD(1.5212,.01,"DT")
  1. ;;=2960820
  1. ;;^DD(1.5212,1,0)
  1. ;;=DM_DATA_TYPE^RP1.5211'^DMSQ("DT",^0;2^Q
  1. ;;^DD(1.5212,1,.1)
  1. ;;=Data Type
  1. ;;^DD(1.5212,1,1,0)
  1. ;;=^.1
  1. ;;^DD(1.5212,1,1,1,0)
  1. ;;=1.5212^E
  1. ;;^DD(1.5212,1,1,1,1)
  1. ;;=S ^DMSQ("DM","E",$E(X,1,30),DA)=""
  1. ;;^DD(1.5212,1,1,1,2)
  1. ;;=K ^DMSQ("DM","E",$E(X,1,30),DA)
  1. ;;^DD(1.5212,1,1,1,"%D",0)
  1. ;;=^^1^1^2960909^
  1. ;;^DD(1.5212,1,1,1,"%D",1,0)
  1. ;;=Domain by data type.
  1. ;;^DD(1.5212,1,1,1,"DT")
  1. ;;=2960909
  1. ;;^DD(1.5212,1,3)
  1. ;;=
  1. ;;^DD(1.5212,1,9)
  1. ;;=^
  1. ;;^DD(1.5212,1,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5212,1,21,1,0)
  1. ;;=IEN of a standard data type in SQLI_DATA_TYPE. Required.
  1. ;;^DD(1.5212,1,"DT")
  1. ;;=2960909
  1. ;;^DD(1.5212,2,0)
  1. ;;=DM_COMMENT^F^^0;3^K:$L(X)>60!($L(X)<3) X
  1. ;;^DD(1.5212,2,.1)
  1. ;;=Comment
  1. ;;^DD(1.5212,2,3)
  1. ;;=Answer must be 3-60 characters in length.
  1. ;;^DD(1.5212,2,9)
  1. ;;=^
  1. ;;^DD(1.5212,2,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5212,2,21,1,0)
  1. ;;=A short comment which describes the data type set
  1. ;;^DD(1.5212,2,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,3,0)
  1. ;;=DM_TABLE^P1.5215'^DMSQ("T",^0;4^Q
  1. ;;^DD(1.5212,3,.1)
  1. ;;=Table
  1. ;;^DD(1.5212,3,1,0)
  1. ;;=^.1
  1. ;;^DD(1.5212,3,1,1,0)
  1. ;;=1.5212^C
  1. ;;^DD(1.5212,3,1,1,1)
  1. ;;=S ^DMSQ("DM","C",$E(X,1,30),DA)=""
  1. ;;^DD(1.5212,3,1,1,2)
  1. ;;=K ^DMSQ("DM","C",$E(X,1,30),DA)
  1. ;;^DD(1.5212,3,1,1,"%D",0)
  1. ;;=^^1^1^2960823^
  1. ;;^DD(1.5212,3,1,1,"%D",1,0)
  1. ;;=Domain by table id
  1. ;;^DD(1.5212,3,1,1,"DT")
  1. ;;=2960823
  1. ;;^DD(1.5212,3,3)
  1. ;;=Enter only if domain is a table-id
  1. ;;^DD(1.5212,3,9)
  1. ;;=^
  1. ;;^DD(1.5212,3,21,0)
  1. ;;=^^2^2^2960926^
  1. ;;^DD(1.5212,3,21,1,0)
  1. ;;=IEN of table in SQLI_TABLE if domain is of type PRIMARY_KEY
  1. ;;^DD(1.5212,3,21,2,0)
  1. ;;=Only primary and foreign keys have such domains.
  1. ;;^DD(1.5212,3,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,4,0)
  1. ;;=DM_WIDTH^NJ3,0^^0;5^K:+X'=X!(X>255)!(X<1)!(X?.E1"."1N.N) X
  1. ;;^DD(1.5212,4,.1)
  1. ;;=Width
  1. ;;^DD(1.5212,4,3)
  1. ;;=Type a Number between 1 and 255, 0 Decimal Digits
  1. ;;^DD(1.5212,4,9)
  1. ;;=^
  1. ;;^DD(1.5212,4,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5212,4,21,1,0)
  1. ;;=Default display width. Overrides data type display width.
  1. ;;^DD(1.5212,4,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,5,0)
  1. ;;=DM_SCALE^NJ1,0^^0;6^K:+X'=X!(X>9)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(1.5212,5,.1)
  1. ;;=Scale
  1. ;;^DD(1.5212,5,3)
  1. ;;=Type a Number between 0 and 9, 0 Decimal Digits
  1. ;;^DD(1.5212,5,9)
  1. ;;=^
  1. ;;^DD(1.5212,5,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5212,5,21,1,0)
  1. ;;=Default number of decimal places displayed for numbers.
  1. ;;^DD(1.5212,5,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,6,0)
  1. ;;=DM_OUTPUT_FORMAT^P1.5214'^DMSQ("OF",^0;7^Q
  1. ;;^DD(1.5212,6,.1)
  1. ;;=Output Format
  1. ;;^DD(1.5212,6,3)
  1. ;;=
  1. ;;^DD(1.5212,6,9)
  1. ;;=^
  1. ;;^DD(1.5212,6,21,0)
  1. ;;=^^2^2^2960926^
  1. ;;^DD(1.5212,6,21,1,0)
  1. ;;=Default output format for elements of this domain.
  1. ;;^DD(1.5212,6,21,2,0)
  1. ;;=Used to provide text value of pointer chains, etc.
  1. ;;^DD(1.5212,6,"DT")
  1. ;;=2960820
  1. ;;^DD(1.5212,7,0)
  1. ;;=DM_INT_EXPR^K^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(1.5212,7,.1)
  1. ;;=Base to Internal Expression
  1. ;;^DD(1.5212,7,3)
  1. ;;=This is a Standard M expression to format X for output
  1. ;;^DD(1.5212,7,9)
  1. ;;=^
  1. ;;^DD(1.5212,7,21,0)
  1. ;;=^^2^2^2960926^
  1. ;;^DD(1.5212,7,21,1,0)
  1. ;;=An M expression which returns the internal value of a base value.
  1. ;;^DD(1.5212,7,21,2,0)
  1. ;;=Expression uses placeholder {B} to represent the base value
  1. ;;^DD(1.5212,7,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,8,0)
  1. ;;=DM_INT_EXEC^K^^2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(1.5212,8,.1)
  1. ;;=Base to Internal Execute
  1. ;;^DD(1.5212,8,3)
  1. ;;=This is Standard MUMPS code to format X for input
  1. ;;^DD(1.5212,8,9)
  1. ;;=^
  1. ;;^DD(1.5212,8,21,0)
  1. ;;=^^2^2^2960926^
  1. ;;^DD(1.5212,8,21,1,0)
  1. ;;=M code line which sets internal value, {I}, to some function of base
  1. ;;^DD(1.5212,8,21,2,0)
  1. ;;=value, {B}.
  1. ;;^DD(1.5212,8,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,9,0)
  1. ;;=DM_BASE_EXPR^K^^3;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(1.5212,9,.1)
  1. ;;=Internal to Base Expression
  1. ;;^DD(1.5212,9,3)
  1. ;;=This is a Standard M expression to format X in internal form.
  1. ;;^DD(1.5212,9,9)
  1. ;;=^
  1. ;;^DD(1.5212,9,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5212,9,21,1,0)
  1. ;;=An M expression which returns the internal value of base value, {B}.
  1. ;;^DD(1.5212,9,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5212,10,0)
  1. ;;=DM_BASE_EXEC^K^^4;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(1.5212,10,3)
  1. ;;=This is Standard MUMPS code.
  1. ;;^DD(1.5212,10,9)
  1. ;;=^
  1. ;;^DD(1.5212,10,21,0)
  1. ;;=^^1^1^2960820^