OCXDI01C ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
 ;;  ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
 ;
S ;
 ;
 D DOT^OCXDIAG
 ;
 ;
 K REMOTE,LOCAL,OPCODE,REF
 F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT  I $L(TEXT) D  Q:QUIT
 .S ^TMP("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
 ;
 G ^OCXDI01D
 ;
 Q
 ;
DATA ;
 ;
 ;;R^"863.7:",3,"E"
 ;;D^HDR^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^TEXT STRING
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^X
 ;;EOR^
 ;;KEY^863.7:^SUBFILE NODE
 ;;R^"863.7:",.01,"E"
 ;;D^SUBFILE NODE
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Given a closed class file reference, this extrinsic function returns the subfile node for the parameter multiple
 ;;R^"863.7:",3,"E"
 ;;D^DICP^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^CLOSED REFERENCE
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^R
 ;;R^"863.7:","863.74:2",.01,"E"
 ;;D^FIELD NAME
 ;;R^"863.7:","863.74:2",1.1,"E"
 ;;D^2
 ;;R^"863.7:","863.74:2",1.2,"E"
 ;;D^F
 ;;EOR^
 ;;KEY^863.7:^CODE AND DECODE
 ;;R^"863.7:",.01,"E"
 ;;D^CODE AND DECODE
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Given a set of codes string, this function codes or decodes a value
 ;;R^"863.7:",2,1
 ;;D^Given a set of codes string (FileMan format) it converts a code to an
 ;;R^"863.7:",2,2
 ;;D^external value or an external value (or a unique partial value) to a code.
 ;;R^"863.7:",3,"E"
 ;;D^SET^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^SET CODES
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^C
 ;;R^"863.7:","863.74:2",.01,"E"
 ;;D^CODE OR VALUE
 ;;R^"863.7:","863.74:2",1.1,"E"
 ;;D^2
 ;;R^"863.7:","863.74:2",1.2,"E"
 ;;D^X
 ;;R^"863.7:","863.74:3",.01,"E"
 ;;D^CODE OR DECODE
 ;;R^"863.7:","863.74:3",1.1,"E"
 ;;D^3
 ;;R^"863.7:","863.74:3",1.2,"E"
 ;;D^T
 ;;EOR^
 ;;KEY^863.7:^RETURN A SET OF CODES
 ;;R^"863.7:",.01,"E"
 ;;D^RETURN A SET OF CODES
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Make a set of codes
 ;;R^"863.7:",3,"E"
 ;;D^SC^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^SET CODES
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^Z
 ;;EOR^
 ;;KEY^863.7:^BREAK A STRING
 ;;R^"863.7:",.01,"E"
 ;;D^BREAK A STRING
 ;;R^"863.7:",.02,"E"
 ;;D^PARAMETERIZED SUBROUTINE
 ;;R^"863.7:",1,"E"
 ;;D^Break a long text string and format according to tab stop and max line length
 ;;R^"863.7:",2,1
 ;;D^Formats a long text string by breaking it in to pieces and printing the
 ;;R^"863.7:",2,2
 ;;D^pieces within a pre-determined format (max line length, tab ofset, 1st line
 ;;R^"863.7:",2,3
 ;;D^tab offset).
 ;;R^"863.7:",3,"E"
 ;;D^BRK^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^TAB OFFSET
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^3
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^T
 ;;R^"863.7:","863.74:2",.01,"E"
 ;;D^FREE TEXT MAXIMUM LENGTH
 ;;R^"863.7:","863.74:2",1.1,"E"
 ;;D^2
 ;;R^"863.7:","863.74:2",1.2,"E"
 ;;D^Y
 ;;R^"863.7:","863.74:3",.01,"E"
 ;;D^TEXT STRING
 ;;R^"863.7:","863.74:3",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:3",1.2,"E"
 ;;D^X
 ;;R^"863.7:","863.74:4",.01,"E"
 ;;D^FIRST LINE TAB
 ;;R^"863.7:","863.74:4",1.1,"E"
 ;;D^4
 ;;R^"863.7:","863.74:4",1.2,"E"
 ;;D^F
 ;;EOR^
 ;;KEY^863.7:^CLASS REFERENCE
 ;;R^"863.7:",.01,"E"
 ;;D^CLASS REFERENCE
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Returns an open or closed reference for a class file
 ;;R^"863.7:",3,"E"
 ;;D^REF^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^CLOSED REFERENCE
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^G
 ;;R^"863.7:","863.74:2",.01,"E"
 ;;D^CLASS NAME
 ;;R^"863.7:","863.74:2",1.1,"E"
 ;;D^2
 ;;R^"863.7:","863.74:2",1.2,"E"
 ;;D^M
 ;;R^"863.7:","863.74:3",.01,"E"
 ;;D^CLOSED OR OPEN
 ;;R^"863.7:","863.74:3",1.1,"E"
 ;;D^3
 ;;R^"863.7:","863.74:3",1.2,"E"
 ;;D^T
 ;;EOR^
 ;;KEY^863.7:^CLOSED REFERENCE
 ;;R^"863.7:",.01,"E"
 ;;D^CLOSED REFERENCE
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Convert an open reference to a closed global reference
 ;;R^"863.7:",3,"E"
 ;;D^CREF^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^OPEN REFERENCE
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^%
 ;;EOR^
 ;;KEY^863.7:^OPEN REFERENCE
 ;;R^"863.7:",.01,"E"
 ;;D^OPEN REFERENCE
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Convert a closed global reference to an open reference
 ;;R^"863.7:",3,"E"
 ;;D^OREF^OCXF
 ;;R^"863.7:","863.74:1",.01,"E"
 ;;D^CLOSED REFERENCE
 ;;R^"863.7:","863.74:1",1.1,"E"
 ;;D^1
 ;;R^"863.7:","863.74:1",1.2,"E"
 ;;D^%
 ;;EOR^
 ;;KEY^863.7:^YES NO
 ;;R^"863.7:",.01,"E"
 ;;D^YES NO
 ;;R^"863.7:",.02,"E"
 ;;D^EXTRINSIC FUNCTION
 ;;R^"863.7:",1,"E"
 ;;D^Gets a YES/NO response from the user
 ;;R^"863.7:",2,1
 ;;D^Extrinsic function equivalent of YN^DICN: 1-YES,2=NO, if Q=1 the question
 ;;R^"863.7:",2,2
 ;;D^mark is suppressed and if N=1 "NULL" is allowed.
 ;;R^"863.7:",3,"E"
 ;;D^YN^OCXF1
 ;;R^"863.7:","863.74:5",.01,"E"
 ;;D^NULL ALLOWED
 ;;R^"863.7:","863.74:5",1.1,"E"
 ;1;
 ;
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI01C   5434     printed  Sep 23, 2025@19:59:35                                                                                                                                                                                                    Page 2
OCXDI01C  ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
 +1       ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
 +2       ;;  ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
 +3       ;
S         ;
 +1       ;
 +2        DO DOT^OCXDIAG
 +3       ;
 +4       ;
 +5        KILL REMOTE,LOCAL,OPCODE,REF
 +6        FOR LINE=1:1:500
               SET TEXT=$PIECE($TEXT(DATA+LINE),";",2,999)
               if TEXT
                   QUIT 
               IF $LENGTH(TEXT)
                   Begin DoDot:1
 +7                    SET ^TMP("OCXDIAG",$JOB,$ORDER(^TMP("OCXDIAG",$JOB,"A"),-1)+1)=TEXT
                   End DoDot:1
                   if QUIT
                       QUIT 
 +8       ;
 +9        GOTO ^OCXDI01D
 +10      ;
 +11       QUIT 
 +12      ;
DATA      ;
 +1       ;
 +2       ;;R^"863.7:",3,"E"
 +3       ;;D^HDR^OCXF
 +4       ;;R^"863.7:","863.74:1",.01,"E"
 +5       ;;D^TEXT STRING
 +6       ;;R^"863.7:","863.74:1",1.1,"E"
 +7       ;;D^1
 +8       ;;R^"863.7:","863.74:1",1.2,"E"
 +9       ;;D^X
 +10      ;;EOR^
 +11      ;;KEY^863.7:^SUBFILE NODE
 +12      ;;R^"863.7:",.01,"E"
 +13      ;;D^SUBFILE NODE
 +14      ;;R^"863.7:",.02,"E"
 +15      ;;D^EXTRINSIC FUNCTION
 +16      ;;R^"863.7:",1,"E"
 +17      ;;D^Given a closed class file reference, this extrinsic function returns the subfile node for the parameter multiple
 +18      ;;R^"863.7:",3,"E"
 +19      ;;D^DICP^OCXF
 +20      ;;R^"863.7:","863.74:1",.01,"E"
 +21      ;;D^CLOSED REFERENCE
 +22      ;;R^"863.7:","863.74:1",1.1,"E"
 +23      ;;D^1
 +24      ;;R^"863.7:","863.74:1",1.2,"E"
 +25      ;;D^R
 +26      ;;R^"863.7:","863.74:2",.01,"E"
 +27      ;;D^FIELD NAME
 +28      ;;R^"863.7:","863.74:2",1.1,"E"
 +29      ;;D^2
 +30      ;;R^"863.7:","863.74:2",1.2,"E"
 +31      ;;D^F
 +32      ;;EOR^
 +33      ;;KEY^863.7:^CODE AND DECODE
 +34      ;;R^"863.7:",.01,"E"
 +35      ;;D^CODE AND DECODE
 +36      ;;R^"863.7:",.02,"E"
 +37      ;;D^EXTRINSIC FUNCTION
 +38      ;;R^"863.7:",1,"E"
 +39      ;;D^Given a set of codes string, this function codes or decodes a value
 +40      ;;R^"863.7:",2,1
 +41      ;;D^Given a set of codes string (FileMan format) it converts a code to an
 +42      ;;R^"863.7:",2,2
 +43      ;;D^external value or an external value (or a unique partial value) to a code.
 +44      ;;R^"863.7:",3,"E"
 +45      ;;D^SET^OCXF
 +46      ;;R^"863.7:","863.74:1",.01,"E"
 +47      ;;D^SET CODES
 +48      ;;R^"863.7:","863.74:1",1.1,"E"
 +49      ;;D^1
 +50      ;;R^"863.7:","863.74:1",1.2,"E"
 +51      ;;D^C
 +52      ;;R^"863.7:","863.74:2",.01,"E"
 +53      ;;D^CODE OR VALUE
 +54      ;;R^"863.7:","863.74:2",1.1,"E"
 +55      ;;D^2
 +56      ;;R^"863.7:","863.74:2",1.2,"E"
 +57      ;;D^X
 +58      ;;R^"863.7:","863.74:3",.01,"E"
 +59      ;;D^CODE OR DECODE
 +60      ;;R^"863.7:","863.74:3",1.1,"E"
 +61      ;;D^3
 +62      ;;R^"863.7:","863.74:3",1.2,"E"
 +63      ;;D^T
 +64      ;;EOR^
 +65      ;;KEY^863.7:^RETURN A SET OF CODES
 +66      ;;R^"863.7:",.01,"E"
 +67      ;;D^RETURN A SET OF CODES
 +68      ;;R^"863.7:",.02,"E"
 +69      ;;D^EXTRINSIC FUNCTION
 +70      ;;R^"863.7:",1,"E"
 +71      ;;D^Make a set of codes
 +72      ;;R^"863.7:",3,"E"
 +73      ;;D^SC^OCXF
 +74      ;;R^"863.7:","863.74:1",.01,"E"
 +75      ;;D^SET CODES
 +76      ;;R^"863.7:","863.74:1",1.1,"E"
 +77      ;;D^1
 +78      ;;R^"863.7:","863.74:1",1.2,"E"
 +79      ;;D^Z
 +80      ;;EOR^
 +81      ;;KEY^863.7:^BREAK A STRING
 +82      ;;R^"863.7:",.01,"E"
 +83      ;;D^BREAK A STRING
 +84      ;;R^"863.7:",.02,"E"
 +85      ;;D^PARAMETERIZED SUBROUTINE
 +86      ;;R^"863.7:",1,"E"
 +87      ;;D^Break a long text string and format according to tab stop and max line length
 +88      ;;R^"863.7:",2,1
 +89      ;;D^Formats a long text string by breaking it in to pieces and printing the
 +90      ;;R^"863.7:",2,2
 +91      ;;D^pieces within a pre-determined format (max line length, tab ofset, 1st line
 +92      ;;R^"863.7:",2,3
 +93      ;;D^tab offset).
 +94      ;;R^"863.7:",3,"E"
 +95      ;;D^BRK^OCXF
 +96      ;;R^"863.7:","863.74:1",.01,"E"
 +97      ;;D^TAB OFFSET
 +98      ;;R^"863.7:","863.74:1",1.1,"E"
 +99      ;;D^3
 +100     ;;R^"863.7:","863.74:1",1.2,"E"
 +101     ;;D^T
 +102     ;;R^"863.7:","863.74:2",.01,"E"
 +103     ;;D^FREE TEXT MAXIMUM LENGTH
 +104     ;;R^"863.7:","863.74:2",1.1,"E"
 +105     ;;D^2
 +106     ;;R^"863.7:","863.74:2",1.2,"E"
 +107     ;;D^Y
 +108     ;;R^"863.7:","863.74:3",.01,"E"
 +109     ;;D^TEXT STRING
 +110     ;;R^"863.7:","863.74:3",1.1,"E"
 +111     ;;D^1
 +112     ;;R^"863.7:","863.74:3",1.2,"E"
 +113     ;;D^X
 +114     ;;R^"863.7:","863.74:4",.01,"E"
 +115     ;;D^FIRST LINE TAB
 +116     ;;R^"863.7:","863.74:4",1.1,"E"
 +117     ;;D^4
 +118     ;;R^"863.7:","863.74:4",1.2,"E"
 +119     ;;D^F
 +120     ;;EOR^
 +121     ;;KEY^863.7:^CLASS REFERENCE
 +122     ;;R^"863.7:",.01,"E"
 +123     ;;D^CLASS REFERENCE
 +124     ;;R^"863.7:",.02,"E"
 +125     ;;D^EXTRINSIC FUNCTION
 +126     ;;R^"863.7:",1,"E"
 +127     ;;D^Returns an open or closed reference for a class file
 +128     ;;R^"863.7:",3,"E"
 +129     ;;D^REF^OCXF
 +130     ;;R^"863.7:","863.74:1",.01,"E"
 +131     ;;D^CLOSED REFERENCE
 +132     ;;R^"863.7:","863.74:1",1.1,"E"
 +133     ;;D^1
 +134     ;;R^"863.7:","863.74:1",1.2,"E"
 +135     ;;D^G
 +136     ;;R^"863.7:","863.74:2",.01,"E"
 +137     ;;D^CLASS NAME
 +138     ;;R^"863.7:","863.74:2",1.1,"E"
 +139     ;;D^2
 +140     ;;R^"863.7:","863.74:2",1.2,"E"
 +141     ;;D^M
 +142     ;;R^"863.7:","863.74:3",.01,"E"
 +143     ;;D^CLOSED OR OPEN
 +144     ;;R^"863.7:","863.74:3",1.1,"E"
 +145     ;;D^3
 +146     ;;R^"863.7:","863.74:3",1.2,"E"
 +147     ;;D^T
 +148     ;;EOR^
 +149     ;;KEY^863.7:^CLOSED REFERENCE
 +150     ;;R^"863.7:",.01,"E"
 +151     ;;D^CLOSED REFERENCE
 +152     ;;R^"863.7:",.02,"E"
 +153     ;;D^EXTRINSIC FUNCTION
 +154     ;;R^"863.7:",1,"E"
 +155     ;;D^Convert an open reference to a closed global reference
 +156     ;;R^"863.7:",3,"E"
 +157     ;;D^CREF^OCXF
 +158     ;;R^"863.7:","863.74:1",.01,"E"
 +159     ;;D^OPEN REFERENCE
 +160     ;;R^"863.7:","863.74:1",1.1,"E"
 +161     ;;D^1
 +162     ;;R^"863.7:","863.74:1",1.2,"E"
 +163     ;;D^%
 +164     ;;EOR^
 +165     ;;KEY^863.7:^OPEN REFERENCE
 +166     ;;R^"863.7:",.01,"E"
 +167     ;;D^OPEN REFERENCE
 +168     ;;R^"863.7:",.02,"E"
 +169     ;;D^EXTRINSIC FUNCTION
 +170     ;;R^"863.7:",1,"E"
 +171     ;;D^Convert a closed global reference to an open reference
 +172     ;;R^"863.7:",3,"E"
 +173     ;;D^OREF^OCXF
 +174     ;;R^"863.7:","863.74:1",.01,"E"
 +175     ;;D^CLOSED REFERENCE
 +176     ;;R^"863.7:","863.74:1",1.1,"E"
 +177     ;;D^1
 +178     ;;R^"863.7:","863.74:1",1.2,"E"
 +179     ;;D^%
 +180     ;;EOR^
 +181     ;;KEY^863.7:^YES NO
 +182     ;;R^"863.7:",.01,"E"
 +183     ;;D^YES NO
 +184     ;;R^"863.7:",.02,"E"
 +185     ;;D^EXTRINSIC FUNCTION
 +186     ;;R^"863.7:",1,"E"
 +187     ;;D^Gets a YES/NO response from the user
 +188     ;;R^"863.7:",2,1
 +189     ;;D^Extrinsic function equivalent of YN^DICN: 1-YES,2=NO, if Q=1 the question
 +190     ;;R^"863.7:",2,2
 +191     ;;D^mark is suppressed and if N=1 "NULL" is allowed.
 +192     ;;R^"863.7:",3,"E"
 +193     ;;D^YN^OCXF1
 +194     ;;R^"863.7:","863.74:5",.01,"E"
 +195     ;;D^NULL ALLOWED
 +196     ;;R^"863.7:","863.74:5",1.1,"E"
 +197     ;1;
 +198     ;