source: WorldVistAEHR/trunk/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/XTER1B.m@ 836

Last change on this file since 836 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.5 KB
Line 
1XTER1B ;ISC-SF/JLI - PACKAGE SPECIFIC VARIABLE IDENTIFICATION ;9/9/92 15:41
2 ;;8.0;KERNEL;;Jul 10, 1995
3EN I '$D(^%ZTER(1,%XTZDAT,1,%XTZNUM,"ZV","B","ZTQUEUED")) W !,"THIS JOB WAS INTERACTIVE -- IT WAS ***NOT*** A QUEUED JOB",!
4 F XTER1BI="ZTQUEUED","DUZ","DUZ(0)","XUCI","XQUSER","XQY0","IO(0)","IO","XMZ" D
5 .S XTER1BK=XTER1BI I XTER1BI["(" S XTER1BK=$P(XTER1BI,"(")_"c",XTER1BK=XTER1BK_$P($E(XTER1BI,$L(XTER1BK)+1,$L(XTER1BI)),")")_"d"
6 .I $D(^%ZTER(1,%XTZDAT,1,%XTZNUM,"ZV","B",XTER1BI)) S XTER1BN=$O(^(XTER1BI,0)) W !,XTER1BI,?10,"(",$P($T(@XTER1BK),";",3),") = ",$S(^%ZTER(1,%XTZDAT,1,%XTZNUM,"ZV",XTER1BN,"D")="":"<null>",1:^("D"))
7 .Q
8 ;
9PKGFIL ;
10 S XTER1BN="" F S XTER1BN=$O(^%ZTER(1,%XTZDAT,1,%XTZNUM,"ZV","B",XTER1BN)) Q:XTER1BN="" S XTER1BI=$O(^(XTER1BN,0)) I $D(^%ZTER(1,%XTZDAT,1,%XTZNUM,"ZV",XTER1BI,"D")) S XTER1BV=^("D") D
11 .F XTER1BP=0:0 S XTER1BP=$O(^DIC(9.4,XTER1BP)) Q:XTER1BP'>0 I $D(^(XTER1BP,0)) S XTER1BPN=$P(^(0),U) I $D(^DIC(9.4,XTER1BP,1933,"AB",XTER1BN)) S XTER1BPV=$O(^(XTER1BN,0)) D Q
12 ..W !!,XTER1BN,?10," = ",XTER1BV,!?5,XTER1BPN," Package"
13 ..F XTER1BPI=0:0 S XTER1BPI=$O(^DIC(9.4,XTER1BP,1933,XTER1BPV,1,XTER1BPI)) Q:XTER1BPI'>0 W !,^(XTER1BPI,0)
14 Q
15END ;
16ZTQUEUED ;;INDICATES THAT THIS JOB WAS A QUEUED TASK;
17DUZ ;;INTERNAL ENTRY NUMBER FOR USER
18DUZc0d ;;FILEMAN ACCESS CODE
19XUCI ;;THE UCI THE JOB WAS IN;
20IO ;;CURRENTLY SELECTED DEVICE
21XMZ ;;INTERNAL NUMBER OF MESSAGE IN FILE 3.9
22IOc0d ;;BASIC DEVICE
23XQY0 ;;ZERO NODE FROM CURRENT OPTION;
24XQUSER ;;THE CURRENT USER'S NAME;
Note: See TracBrowser for help on using the repository browser.