MAGDGL ;WOIFO/EdM - Global Lister ; 05/27/2005 09:23 ;;3.0;IMAGING;**11,51**;26-August-2005 ;; +---------------------------------------------------------------+ ;; | Property of the US Government. | ;; | No permission to copy or redistribute this software is given. | ;; | Use of unreleased versions of this software requires the user | ;; | to execute a written test agreement with the VistA Imaging | ;; | Development Office of the Department of Veterans Affairs, | ;; | telephone (301) 734-0100. | ;; | | ;; | The Food and Drug Administration classifies this software as | ;; | a medical device. As such, it may not be changed in any way. | ;; | Modifications to this software may result in an adulterated | ;; | medical device under 21CFR820, the use of which is considered | ;; | to be a violation of US Federal Statutes. | ;; +---------------------------------------------------------------+ ;; ; Call Global Variable Lister N DTIME,I,MAX,N,WILD,OUT,T,X S DTIME=$G(DTIME,300),MAX=20 F D Q:WILD="" . W !,"Global Variable name: ^" R WILD:DTIME E S WILD="" . S:WILD="^" WILD="" . Q:WILD="" . S:$E(WILD,1)'="^" WILD="^"_WILD . S (N,START)=0 F D Q:N0 S START=START-1 Q . S NM=$NA(@NAME) . S X="""",C=0 F I=1:1:$L(%D) D . . S A=$A(%D,I) . . I A>31,A<127,'C S X=X_$C(A) S:A=34 X=X_$C(A) Q . . I A>31,A<127 S C=0,X=X_")_"""_$C(A) S:A=34 X=X_$C(A) Q . . I X="""" S X="$C("_A,C=1 Q . . I C S X=X_","_A Q . . S X=X_"""_$C("_A,C=1 . . Q . S X=X_$S(C:")",1:"""") . F D Q:X="" . . S N=N+1,OUT(N+1)=NM,NM="" . . S N=N+1,OUT(N+1)=$E(X,1,250),X=$E(X,251,$L(X)) . . Q . Q Q:N'