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

DINIT2B0.m

Go to the documentation of this file.
  1. DINIT2B0 ;SFISC/MKO-SQLI FILES ;10:51 AM 30 Mar 1999
  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) 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 ^DINIT2B1
  1. Q Q
  1. ;;^DIC(1.521,0,"GL")
  1. ;;=^DMSQ("S",
  1. ;;^DIC("B","SQLI_SCHEMA",1.521)
  1. ;;=
  1. ;;^DIC(1.521,"%D",0)
  1. ;;=^^1^1^2970806^^^
  1. ;;^DIC(1.521,"%D",1,0)
  1. ;;=A set of tables and domains. A subset of catalog and environment
  1. ;;^DD(1.521,0)
  1. ;;=FIELD^^2^3
  1. ;;^DD(1.521,0,"DDA")
  1. ;;=N
  1. ;;^DD(1.521,0,"DT")
  1. ;;=2960820
  1. ;;^DD(1.521,0,"IX","B",1.521,.01)
  1. ;;=
  1. ;;^DD(1.521,0,"NM","SQLI_SCHEMA")
  1. ;;=
  1. ;;^DD(1.521,0,"PT",1.5215,1)
  1. ;;=
  1. ;;^DD(1.521,0,"VRPK")
  1. ;;=DI
  1. ;;^DD(1.521,.01,0)
  1. ;;=S_NAME^RF^^0;1^K:$L(X)>30!($L(X)<1)!'($TR(X,"_")?1U.UN) X
  1. ;;^DD(1.521,.01,.1)
  1. ;;=Schema
  1. ;;^DD(1.521,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(1.521,.01,1,1,0)
  1. ;;=1.521^B
  1. ;;^DD(1.521,.01,1,1,1)
  1. ;;=S ^DMSQ("S","B",$E(X,1,30),DA)=""
  1. ;;^DD(1.521,.01,1,1,2)
  1. ;;=K ^DMSQ("S","B",$E(X,1,30),DA)
  1. ;;^DD(1.521,.01,3)
  1. ;;=SQL identifier start with upper case letter, only letters, numbers and _.
  1. ;;^DD(1.521,.01,9)
  1. ;;=^
  1. ;;^DD(1.521,.01,21,0)
  1. ;;=^^2^2^2960926^^
  1. ;;^DD(1.521,.01,21,1,0)
  1. ;;=In FileMan, application groups are assigned SQL schema names
  1. ;;^DD(1.521,.01,21,2,0)
  1. ;;=Names are valid SQL identifiers, and are unique by site
  1. ;;^DD(1.521,.01,"DT")
  1. ;;=2960820
  1. ;;^DD(1.521,1,0)
  1. ;;=S_SECURITY^F^^1;1^K:$L(X)>12!($L(X)<4) X
  1. ;;^DD(1.521,1,.1)
  1. ;;=Security
  1. ;;^DD(1.521,1,3)
  1. ;;=Answer must be 4-12 characters in length.
  1. ;;^DD(1.521,1,4)
  1. ;;=W ?5,"Routine to check access to schema"
  1. ;;^DD(1.521,1,9)
  1. ;;=^
  1. ;;^DD(1.521,1,21,0)
  1. ;;=^^1^1^2970311^^^^
  1. ;;^DD(1.521,1,21,1,0)
  1. ;;=A routine to check security by application group.
  1. ;;^DD(1.521,1,"DT")
  1. ;;=2960926
  1. ;;^DD(1.521,2,0)
  1. ;;=S_DESCRIPTION^F^^0;2^K:$L(X)>60!($L(X)<3) X
  1. ;;^DD(1.521,2,.1)
  1. ;;=Description
  1. ;;^DD(1.521,2,3)
  1. ;;=Describe schema. Answer must be 3-60 characters in length.
  1. ;;^DD(1.521,2,9)
  1. ;;=^
  1. ;;^DD(1.521,2,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.521,2,21,1,0)
  1. ;;=A short description of the schema
  1. ;;^DD(1.521,2,"DT")
  1. ;;=2960820