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

DDSSTK.m

Go to the documentation of this file.
  1. DDSSTK ;SFISC/MKO-STACK CONTEXT, GO TO A NEW PAGE ;08:23 AM 1 Nov 1994
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. N DDO
  1. N DDSBK,DDSDN,DDSFLD,DDSNP,DDSOPB,DDSPG,DDSPTB,DDSREP,DDSTP
  1. ;
  1. I DDSSTACK?1"`".E D
  1. . S DDSSTACK=+$E(DDSSTACK,2,999)
  1. E I DDSSTACK=+$P(DDSSTACK,"E") D
  1. . S DDSSTACK=+$O(^DIST(.403,+DDS,40,"B",DDSSTACK,""))
  1. E D
  1. . S DDSSTACK=$O(^DIST(.403,+DDS,40,"C",$$UPCASE(DDSSTACK),""))
  1. ;
  1. I 'DDSSTACK!($D(^DIST(.403,+DDS,40,+$G(DDSSTACK),0))[0) D Q
  1. . K DDSSTACK,DDSBR
  1. ;
  1. N DDSDAORG,DDSDLORG,DDSFLORG,DDSPG
  1. N:'$P(^DIST(.403,+DDS,40,+$G(DDSSTACK),0),U,6) DDSSC
  1. ;
  1. S DDSPG=DDSSTACK
  1. K DDSSTACK,DDSBR
  1. ;
  1. S DDSDLORG=DDSDL,DDSDAORG=DA
  1. F DDSI=1:1:DDSDL S DDSDAORG(DDSI)=DA(DDSI)
  1. K DDSI
  1. ;
  1. S DDSSTK=1
  1. D PROC^DDS
  1. Q
  1. ;
  1. UPCASE(X) ;
  1. ;Return X in uppercase
  1. Q $TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")