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

ASUAPCAN.m

Go to the documentation of this file.
ASUAPCAN ;DSD/DFM - DIRECT ISSUE COMMON ACCOUNTING NUMBER (CAN);  [ 04/15/98  2:33 PM ]
 ;;3.0;SAMS;**1**;AUG 20, 1993
RDCAN ;
 S ASUVX=ASUK("AREA","ACCPT")
 I $E(ASUVX)=5 D
 .I ASUVX=50!(ASUVX=51) S ASUVX=$E(ASUVX)
 S DIR("A")=ASUV("ITEM #")_". ENTER COMMON ACCOUNTING NUMBER : J"_ASUVX
 S X=$S(ASUVX=5:5,1:4)
 S DIR(0)="FA^"_X_":"_X_"^K:X'?"_X_"AN X"
 S DIR("?")="Enter "_X_" alpha-numeric characters" K X
 D ^DIR
 I $D(DTOUT)!($D(DUOUT))!($D(DIROUT)) G EXIT
 S ASUTRNS(ASUTRNS,"COMMON ACCOUNT #")="J"_ASUVX_X
EXIT ;RETURN TO CALLING ROUTINE
 K X,Y,DIR,ASUVX
 Q