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

DVBABDDU.m

Go to the documentation of this file.
  1. DVBABDDU ;ALB/RPM - CAPRI DATA DICTIONARY UTILITIES ; 08/05/10
  1. ;;2.7;AMIE;**149**;Apr 10, 1995;Build 16
  1. ;
  1. GETSET(DVBRSLT,DVBFIL,DVBFLD) ;return Set of Codes
  1. ;This procedure returns the internal and external values
  1. ;for a given file and SET OF CODES field.
  1. ;
  1. ;Supports remote procedure: DVBAB GET SET
  1. ;
  1. ; Input:
  1. ; DVBFIL - (required) file number (ex. 396.3)
  1. ; DVBFLD - (required) field number (ex. 9)
  1. ;
  1. ; Output:
  1. ; DVBRSLT - (pass by reference) returns an array of caret-delimited
  1. ; internal and external set of codes values on success;
  1. ; otherwise, returns nothing
  1. ; Ex: DVBRSLT(n)=code internal value^code external value
  1. ;
  1. N DVBSET ;results from FIELD^DID call
  1. N DVBCNT ;returned codes count
  1. N DVBI ;generic counter
  1. N DVBSETI ;internal value
  1. N DVBSETE ;external value
  1. ;
  1. D FIELD^DID(DVBFIL,DVBFLD,"","POINTER","DVBSET","DVBSET")
  1. I '$D(DVBSET("DIERR")) D
  1. . S DVBCNT=$L(DVBSET("POINTER"),";")-1
  1. . F DVBI=1:1:DVBCNT D
  1. . . S DVBSETI=$P($P(DVBSET("POINTER"),";",DVBI),":",1)
  1. . . S DVBSETE=$P($P(DVBSET("POINTER"),";",DVBI),":",2)
  1. . . S DVBRSLT(DVBI)=DVBSETI_"^"_DVBSETE
  1. Q