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

ASUARDTX.m

Go to the documentation of this file.
  1. ASUARDTX ;DSD/DFM - RECEIPT ENTER DATE OF EXPIRATION; [ 04/15/98 2:44 PM ]
  1. ;;3.0;SAMS;**2**;AUG 20, 1993
  1. RDDT4 ;
  1. S DIR("A")="13. ENTER EXPIRATION DATE"
  1. S DIR("?")="Enter a Date in 'MMYY' format not before current month - may be blank"
  1. S DIR(0)="FO^1:4^D DTCK^ASUARDTX"
  1. D ^DIR I $D(DUOUT)!($D(DIROUT))!($D(DTOUT)) G EXIT
  1. S ASUTRNS(ASUTRNS,"EXPIRATION DATE")=Y
  1. EXIT ;RETURN TO CALLING ROUTINE
  1. K DIR,X,Y
  1. Q
  1. DTCK ;
  1. I X="T"!(X="N") S Y=$E(ASUK("DATE","FM"),4,5)_$E(ASUK("DATE","FM"),2,3) W " ",Y Q
  1. I X["/" S %DT="F" D ^%DT I Y>0 S Y=$E(Y,4,5)_$E(Y,2,3) W " ",Y Q
  1. I $L(X)<4 W !,"Answer must be in MMYY format" K X Q
  1. I ($E(X,3,4)<$E(ASUK("DATE","FM"),2,3))&($E(X,3,4)>"85") W !,"Answer may not be for a previous year" K X Q ;DFM 3/27/98 FIX UNTIL 2085
  1. I ($E(X,3,4)=$E(ASUK("DATE","FM"),2,3))&($E(X,1,2)<$E(ASUK("DATE","FM"),4,5)) W !,"Month must be current month or greater" K X Q
  1. I $E(X,1,2)>12!(+$E(X,1,2)<1) W !,"Month must be 01 - 12" K X Q
  1. S Y=X
  1. Q