source: FOIAVistA/tag/r/DIETETICS-FH/FHPRI3.m@ 1540

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

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1FHPRI3 ; HISC/REL - List Vendors ;4/27/93 13:36
2 ;;5.5;DIETETICS;;Jan 28, 2005
3L1 W ! K IOP,%ZIS S %ZIS("A")="Select LIST Printer: ",%ZIS="MQ" D ^%ZIS K %ZIS,IOP G:POP KIL
4 I $D(IO("Q")) S FHPGM="Q1^FHPRI3",FHLST="" D EN2^FH G KIL
5 U IO D Q1 D ^%ZISC K %ZIS,IOP G KIL
6Q1 ; Print Vendors List
7 D NOW^%DTC S DTP=% D DTP^FH S PG=0,Y="" D HDR
8 S NX="" F K=0:0 S NX=$O(^FH(113.2,"B",NX)) Q:NX=""!(Y="^") F D0=0:0 S D0=$O(^FH(113.2,"B",NX,D0)) Q:D0<1!(Y="^") D Q2
9 W ! Q
10Q2 S X=$G(^FH(113.2,D0,0)) Q:X="" D:$Y>(IOSL-11) HDR Q:Y="^"
11 K A S N=0 F L=1:1:4 S A(L)="",Z=$P(X,"^",L+1) I Z'="" S N=N+1,A(N)=Z
12 S N=4 F L=5,6 S A(L)="",Z=$P(X,"^",L+1) I Z'="" S N=N+1,A(N)=Z
13 W !,$P(X,"^",1) W:A(1)'="" ?40,A(1)
14 I A(2)'=""!(A(5)'="") W ! W:A(5)'="" ?5,A(5) W:A(2)'="" ?40,A(2)
15 I A(3)'=""!(A(6)'="") W ! W:A(6)'="" ?5,A(6) W:A(3)'="" ?40,A(3)
16 W:A(4)'="" !?40,A(4) W ! Q
17HDR I PG,IOST?1"C".E W *7 R Y:DTIME S:'$T Y="^" Q:Y="^"
18 W:'($E(IOST,1,2)'="C-"&'PG) @IOF
19 S PG=PG+1 W !,DTP,?29,"V E N D O R L I S T",?72,"Page ",PG
20 W !!,"NAME",?40,"ADDRESS"
21 W !,"-------------------------------------------------------------------------------",! Q
22KIL G KILL^XUSCLEAN
Note: See TracBrowser for help on using the repository browser.