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

XMAD2.m

Go to the documentation of this file.
  1. XMAD2 ;ISC-SF/GMB-Basket lookup/create API ;04/17/2002 07:31
  1. ;;8.0;MailMan;;Jun 28, 2002
  1. ; Was (WASH ISC)/CAP
  1. ;
  1. ; Entry points (DBIA 1147):
  1. ; BSKT Lookup/create a basket, return its number
  1. ;
  1. BSKT(XMKN,XMDUZ) ; Find or Create a basket / return its internal number
  1. ; Needs:
  1. ; XMKN Basket-name
  1. ; XMDUZ User's DUZ
  1. N XMK,XMER
  1. S XMK=$$FIND1^DIC(3.701,","_XMDUZ_",","X",XMKN)
  1. Q:XMK XMK
  1. D CRE8BSKT^XMXAPIB(XMDUZ,XMKN,.XMK)
  1. Q:'$D(XMERR) XMK
  1. S XMER=^TMP("XMERR",$J,1,"TEXT",1)
  1. K XMERR,^TMP("XMERR",$J)
  1. Q XMER