source: FOIAVistA/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSCPAA.m@ 1528

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

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1YSCPAA ; GENERATED FROM 'YSJOB' PRINT TEMPLATE (#551) ; 08/21/96 ; (FILE 624, MARGIN=80)
2 G BEGIN
3N W !
4T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 W ?0 W "Date of listing:"
15 S X=$G(^YSG("JOB",D0,1)) W ?18 S Y=$P(X,U,3) D DT
16 D N:$X>49 Q:'DN W ?49 W "Job number:"
17 D N:$X>64 Q:'DN W ?64 S Y=D0 W:Y]"" $J(Y,7,0)
18 S X=$G(^YSG("JOB",D0,0)) D N:$X>0 Q:'DN W ?0,$E($P(X,U,6),1,30)
19 D N:$X>39 Q:'DN W ?39,$E($P(X,U,7),1,40)
20 D N:$X>0 Q:'DN W ?0,$E($P(X,U,8),1,30)
21 D N:$X>32 Q:'DN W ?32 S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
22 D N:$X>64 Q:'DN W ?64,$E($P(X,U,10),1,5)
23 D N:$X>0 Q:'DN W ?0 W "Hourly wage:"
24 D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,3) W:Y]"" $J(Y,7,2)
25 D N:$X>46 Q:'DN W ?46 W "Hours/week:"
26 D N:$X>59 Q:'DN W ?59 S Y=$P(X,U,4) W:Y]"" $J(Y,3,0)
27 D N:$X>0 Q:'DN W ?0 W "Contact name:"
28 S X=$G(^YSG("JOB",D0,1)) D N:$X>15 Q:'DN W ?15,$E($P(X,U,1),1,35)
29 D N:$X>47 Q:'DN W ?47 W "Phone:"
30 S X=$G(^YSG("JOB",D0,0)) D N:$X>55 Q:'DN W ?55,$E($P(X,U,11),1,25)
31 K Y
32 Q
33HEAD ;
34 W !,?18,"DATE OF"
35 W !,?18,"LISTING",?65,"NUMBER"
36 W !,?0,"EMPLOYER",?39,"STREET ADDRESS"
37 W !,?0,"CITY",?32,"STATE",?64,"ZIP"
38 W !,?59,"HOURS"
39 W !,?16,"WAGE",?61,"PER"
40 W !,?13,"(HOURLY)",?60,"WEEK"
41 W !,?15,"CONTACT NAME"
42 W !,?55,"EMPLOYER PHONE"
43 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.