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

ASUAPSST.m

Go to the documentation of this file.
ASUAPSST ;DSD/DFM - GET SUB STATION CODE FOR DICECT ISSUE;  [ 04/15/98  2:39 PM ]
 ;;3.0;SAMS;**1**;AUG 20, 1993
 K ASUTRSST
 S:'$D(ASUSW("OPTIONAL")) ASUSW("OPTIONAL")="P"
 K DIC
 S ASUK("ARST")=ASUK("AREA","ACCPT")_$S(ASUK("WAREHOUSE"):ASUK("STATION","MAIN"),1:ASUTRNS(ASUTRNS,"STATION"))
 S X=ASUTRNS(ASUTRNS,"STATION")
 S DIC("S")="I $P(^(0),U,3)=ASUK(""ARST"")"
 S DIC="9002039.2"
 S DIC(0)="MX"
 W !,ASUV("ITEM #")_". SUB STATION CODE: "_X
 D ^DIC
 I $D(DTOUT)!($D(DUOUT))!($D(DICOUT)) G EXIT
 I Y>0 S ASUTRSST=+Y,ASUTRNS(ASUTRNS,"SUB STATION")=$P(Y,U,2)
EXIT ;RETURN TO CALLING ROUTINE
 K X,Y,DIC,ASUSW("OPTIONAL")
 Q