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

LRUU.m

Go to the documentation of this file.
  1. LRUU ; IHS/DIR/FJE - FIND FIELD FOR A SUBSCRIPT & PIECE 9/2/87 09:35 ;
  1. ;;5.2;LR;**1013**;JUL 15, 2002
  1. ;
  1. ;;5.2;LAB SERVICE;;Sep 27, 1994
  1. S:'$D(DTIME) DTIME=300
  1. W !!?20,"Enter file/subfile #, subscript and piece",!?30,"separated by commas: "
  1. R X:DTIME Q:X=""!(X["^")
  1. F A=1:1:3 S A(A)=$P(X,",",A)
  1. F A=1:1:3 I A(A)="" W $C(7),!!,"File, subscript and piece must be entered and separated by commas (',')." G LRUU
  1. S X=$O(^DD(A(1),"GL",A(2),A(3),0)) I X="" W $C(7),!!,"Field not found. Try again." G LRUU
  1. W !!,^DD(A(1),X,0) G LRUU