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

BTIUARC.m

Go to the documentation of this file.
  1. BTIUARC ; IHS/ITSC/LJF - ARCHIVE UPLOADED FILE ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  1. ;
  1. MAIN ;-- main program driver
  1. D DT,ARC,CLOSE
  1. Q
  1. ;
  1. DT ;-- create the file date/time for archiving
  1. S (FDT,FTM,FNM)=0
  1. D NOW^%DTC
  1. S FDT=$P(%,".",1),FTM=$E($P(%,".",2),1,4)
  1. S FNM="tiu"_FDT_"."_FTM
  1. Q
  1. ;
  1. ARC ;-- move the file from upload directory to archive directory
  1. NEW SITE,DIR,FILE
  1. S SITE=$O(^TIU(8925.99,"B",DUZ(2),0))
  1. S FROM=$$GET1^DIQ(8925.99,SITE,9999999.01)
  1. S TODIR=$$GET1^DIQ(8925.99,SITE,9999999.02)
  1. S FILE=$$GET1^DIQ(8925.99,SITE,9999999.03)
  1. S Y=$$MV^%ZISH(FROM,FILE,TODIR,FNM)
  1. Q
  1. ;
  1. CLOSE ;-- kill the variables and quit
  1. K FDT,FTM,FNM
  1. Q