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

XBRLL.m

Go to the documentation of this file.
  1. XBRLL ; IHS/ADC/GTH - LIST ROUTINE LINES WITH LENGTHS ; [ 02/07/97 3:02 PM ]
  1. ;;3.0;IHS/VA UTILITIES;;FEB 07, 1997
  1. ;
  1. ; This routine lists a single routine line by line noting
  1. ; the length of the line plus the cumulative character count.
  1. ;
  1. START ;
  1. NEW DIF,X,XCNP
  1. S X=$$DIR^XBDIR("FO^1:8","Enter routine name")
  1. Q:$D(DIRUT)
  1. X ^%ZOSF("TEST")
  1. Q:'$T
  1. KILL ^TMP("XBRLL",$J)
  1. S DIF="^TMP(""XBRLL"",$J,",XCNP=0
  1. X ^%ZOSF("LOAD")
  1. D ^%ZIS
  1. Q:POP
  1. U IO
  1. W !!,"....[LINE NUMBER/LENGTH OF THIS LINE/CUMULATIVE NUMBER OF CHARACTERS]",!!
  1. S (%2,%1)=0
  1. F %I=1:1 S %X=$G(^TMP("XBRLL",$J,%I,0)) Q:%X="" W ! S %Y=$P(%X," "),%Z=$E(%X,$L(%Y)+2,255),%2=%2+$L(%X)+2,%1=$S(%Y="":%1+1,1:0) S:%1>0 %Y=" +"_%1 S %Y=%Y_$J("",8-$L(%Y)) W %Y," ",%Z," [+",%I,"/",$L(%X),"/",%2,"]"
  1. KILL %1,%2,%N,%X,%Y,%Z,%I
  1. W !!
  1. KILL DIRUT,DTOUT,DUOUT,I,Y
  1. D ^%ZISC
  1. Q
  1. ;