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

PSXHSYS1.m

Go to the documentation of this file.
  1. PSXHSYS1 ;BIR/WPB/PDW-EDIT INTERAGENCY PARAMETERS ;MAR 1,2002@16:11:17
  1. ;;2.0;CMOP;**38**;11 Apr 97
  1. EDITDOD ; this entry point grants access to the setting of the host directories
  1. ; and the scheduling of the interface option for importing other agencies CMOP RXs
  1. ; Called from PSXHSYS the user must have the PSXDOD key
  1. ;
  1. N TSK,DATE,HOUR,HOST,PSXOPTDA
  1. D EDIT
  1. Q
  1. EDIT ;
  1. N PSXT,XX S XX="PSX DOD CMOP INTERFACE" D OPTSTAT^XUTMOPT(XX,.PSXT)
  1. I '+PSXT D Q
  1. .W !,"You must first use Kernel Option Scheduling to setup the option 'PSX DOD CMOP INTERFACE'."
  1. ; gather existing information
  1. S XX="PSX DOD CMOP INTERFACE"
  1. K TSK D OPTSTAT^XUTMOPT(XX,.TSK) S TSK(1)=$G(TSK(1))
  1. S TSK=+TSK(1),DATE=$P(TSK(1),U,2),HOUR=$P(TSK(1),U,3)
  1. S Y=DATE X ^DD("DD") S DATE=Y
  1. K HOST D GETS^DIQ(554,1,"20:23","","HOST"),TOP^PSXUTL("HOST")
  1. ;display information
  1. W @IOF W !,"Host Directory Paths",?40,"Schedule"
  1. W !!,"In",?10,HOST(20),?40,"Next Run",?60,DATE
  1. W !,"Out",?10,HOST(21),?40,"Frequency",?60,HOUR
  1. W !,"Archive",?10,HOST(22),?40,"Tasking ID",?60,TSK
  1. W !,"Pending",?10,HOST(23)
  1. ;request edit information or quit
  1. K DIR S DIR(0)="SO^P:Paths;S:Schedule",DIR("A")="Edit Paths <P> or Schedule <S>, or Exit <cr>"
  1. D ^DIR K DIR
  1. I Y'="S",Y'="P" Q
  1. ;edit information
  1. I Y="S" D EDIT^XUTMOPT("PSX DOD CMOP INTERFACE") G EDIT
  1. L +^PSX(554,1):600
  1. K DIE,DR,DA S DIE="^PSX(554,",DA=1,DR="20;21;22;23" D ^DIE
  1. L -^PSX(554,1)
  1. G EDIT
  1. Q