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