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

LRZ4JOB.m

Go to the documentation of this file.
  1. LRJOB ;SLC/DCM- JOB AUTOMATED LAB ROUTINES ; 8/22/88 10:45 ;8/22/88 10:24 AM
  1. ;;V~4.08~
  1. INST S U="^" W !,"This is an option to manually start automated Lab routines that "
  1. W !,"for some reason did not get started by the master lab program."
  1. W !!,"Have you checked the status of the Lab computer (LSI)?" S %=1 D YN^DICN G LA2:%=1
  1. LA3 D ASK^LR1103 W !!,"Is the Lab computer working?" S %=1 D YN^DICN G LA3:%'=1
  1. LA2 D STATUS
  1. S DIC=62.4,DIC(0)="AEMQ",DIC("S")="I Y<99" D ^DIC K DIC I Y<1 W !,"NO JOB SELECTED",! G END
  1. S LRJOB="^"_$P(^LAB(62.4,+Y,0),U,3),LRJOBN=+Y,ZTIO=""
  1. S X=$S(LRJOBN>10:$E(LRJOBN-1,1)_1,1:1),(LRJOBIO,X)=$S($D(^LAB(62.4,X,0)):$P(^(0),U,2),1:"") G RONG:X']""
  1. S IOP=X,%ZIS="NQ" D ^%ZIS G RONG:POP I ^%ZOSF("VOL")'=$P(^%ZIS(1,IOS,0),U,9),$P(^(0),U,9)]"" S ZTIO=X G RONG ; This line has been patched for use with KERNEL V6. AC/SFISC 10-30-88.
  1. A W !!!,"System status will tell you if the automated routine is running."
  1. W !,"Look for the name of the routine in the system status.",!
  1. X ^%ZOSF("SS") D ^LRPARAM
  1. W !,"Is the routine name listed in the system status?" S %=2 D YN^DICN I %=1 W !,"You do not want to start a job that is running!!",*7 G END
  1. W !,"Do you want to start the automated ",LRJOB," routine now?" S %=1 D YN^DICN G END:%'=1
  1. I LRJOBN#10=1 S T=LRJOBN,ZTIO=LRJOBIO D SET^LAB
  1. JOB I '$D(^LA(LRJOBN,"I")) W !!,*7,"There is no data in that file to be processed!!! JOB NOT STARTED!!!",*7 G END
  1. K ^LA("LOCK",LRJOBN) S ZTRTN=LRJOB,ZTDTH=$H D ^%ZTLOAD K ZTSK,ZTRTN,LRJOB,ZTDTH W !,"Check system status to see if job started."
  1. H 2 W "." H 2 X ^%ZOSF("SS") D ^LRPARAM
  1. END K I,LRPGM,LRTIME,LRIO,Y,DIC,LRJOB,LRJOBN,% Q
  1. RONG W !!,*7,"The job selected is not interfaced to this computer!",! G END
  1. STATUS ;DISPLAY LSI STATUS.
  1. W !! D DASH W !,?30,"LSI INTERFACE STATUS" D DASH
  1. W !,?6,"INST.",?18,"DATA",?25,"DATA",?34,"++ PROGRAM STATUS LINK +++",?67,"DEVICE"
  1. W !,?1," #",?6,"NAME",?18,"IN LA?",?25,"IN LAH?",?34,"NAME",?44,"ACTIVE",?52,"BY",?58,"TO",?67,"NAME"
  1. D DASH F IX=0:0 S IX=$O(^LAB(62.4,IX)) Q:IX<1!(IX>90) D STA2
  1. W !! K IX Q
  1. STA2 S X=$S($D(^LAB(62.4,IX,0)):^(0),1:"") W !,?1,$J(IX,2),?6,$E($P(X,"^",1),1,10),?18,$S($D(^LA(IX,"I")):"Yes",1:"No"),?25,$S($D(^LAH(+$P(X,"^",4))):"Yes",1:"No")
  1. W ?34,$P(X,"^",3),?44,$S($D(^LA("LOCK",IX)):"Yes",1:"No"),?52,$E($P(X,"^",7),1,3),?58 S Y=$P(X,"^",6) W $S(Y["LOG":"Acc.",Y["SEQN":"Seq.",Y["IDEN":"Invoice",Y["LLIST":"T/C",1:"")
  1. W ?67,$E($P(X,"^",2),1,10)
  1. Q
  1. DASH S X="",$P(X,"-",79)="" W !,X Q
  1. ;*** NOTE ***
  1. ;PATCHES HAVE BEEN INSERTED INTO THIS ROUTINE IN ORDER TO RUN WITH KERNEL V6.
  1. ;INSERTED BY AC/SFISC 10-30-88. UNVERIFIED PATCHES.
  1. ;Line> LA2+4
  1. ;replace> $L($P(^%ZIS(1,IOS,0),U,9))
  1. ;with> ^%ZOSF("VOL")'=$P(^%ZIS(1,IOS,0),U,9),$P(^(0),U,9)]""