Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: PSADRI

Package: Drug Accountability

Routine: PSADRI


Information

PSADRI ; GENERATED FROM 'PSADRI' PRINT TEMPLATE (#3786) ; 11/29/04 ; (FILE 50, MARGIN=80)

Source Information

Source file <PSADRI.m>

Call Graph

Call Graph Total: 4

Package Total Call Graph
VA Fileman 4 $$OUT^DIALOGU  CSTP^DIO2  ^DIWP  (,0)^DIWW  

Entry Points

Name Comments DBIA/ICR reference
BEGIN ;
A1R ;
M
A2R ;
N
A1 ;
HEAD ;
A2 ;
T
B2 ;
DT
B2R ;

External References

Name Field # of Occurrence
$$OUT^DIALOGU DT
CSTP^DIO2 T+1
^DIWP A2+1
^DIWW A2R+2
0^DIWW A2R+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: N+0
Function Call: WRITE
  • Prompt: $$OUT^DIALOGU(Y,"DD")
  • Line Location: DT+0
Function Call: WRITE
  • Prompt: $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" "
  • Line Location: DT+1
Function Call: WRITE
  • Prompt: $J(Y#100\1,2)_","
  • Condition for execution: Y#100
  • Line Location: DT+1
Function Call: WRITE
  • Prompt: Y\10000+1700
  • Line Location: DT+1
Function Call: WRITE
  • Prompt: " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12)
  • Condition for execution: Y#1
  • Line Location: DT+1
Function Call: WRITE
  • Prompt: Y
  • Line Location: DT+2
Function Call: WRITE
  • Prompt: ?0
  • Line Location: BEGIN+4
Function Call: WRITE
  • Prompt: "DRUG file"
  • Line Location: BEGIN+4
Function Call: WRITE
  • Prompt: ?39
  • Line Location: BEGIN+5
Function Call: WRITE
  • Prompt: "ITEM MASTER file"
  • Line Location: BEGIN+5
Function Call: WRITE
  • Prompt: ?0
  • Line Location: BEGIN+6
Function Call: WRITE
  • Prompt: X
  • Line Location: BEGIN+6
Function Call: WRITE
  • Prompt: ?0,$E($P(X,U,1),1,35)
  • Line Location: BEGIN+7
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+4
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+4
Function Call: WRITE
  • Prompt: ?0
  • Line Location: A2R+5
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+5
Function Call: WRITE
  • Prompt: ?29
  • Line Location: A2R+6
Function Call: WRITE
  • Prompt: "-NSN-"
  • Line Location: A2R+6
Function Call: WRITE
  • Prompt: ?39,$E($P(X,U,5),1,17)
  • Line Location: A2R+7
Function Call: WRITE
  • Prompt: ?0
  • Line Location: A2R+8
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+8
Function Call: WRITE
  • Prompt: ?11
  • Line Location: A2R+9
Function Call: WRITE
  • Prompt: ?29
  • Line Location: A2R+10
Function Call: WRITE
  • Prompt: "-NDC-"
  • Line Location: A2R+10
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+11
Function Call: WRITE
  • Prompt: $P(^PRC(441,+NO,2,+VE,0),U,5)
  • Line Location: A2R+11
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+12
Function Call: WRITE
  • Prompt: ?29
  • Line Location: A2R+13
Function Call: WRITE
  • Prompt: "-COST-"
  • Line Location: A2R+13
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+14
Function Call: WRITE
  • Prompt: ?50
  • Line Location: A2R+15
Function Call: WRITE
  • Prompt: "Date of price: "
  • Line Location: A2R+15
Function Call: WRITE
  • Prompt: "Date of price: "
  • Line Location: A2R+15
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+16
Function Call: WRITE
  • Prompt: ?29
  • Line Location: A2R+17
Function Call: WRITE
  • Prompt: "-PKG-"
  • Line Location: A2R+17
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+18
Function Call: WRITE
  • Prompt: ?0
  • Line Location: A2R+19
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+19
Function Call: WRITE
  • Prompt: ?26
  • Line Location: A2R+20
Function Call: WRITE
  • Prompt: "-UNIT COST-"
  • Line Location: A2R+20
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+21
Function Call: WRITE
  • Prompt: "$"
  • Line Location: A2R+21
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+23
Function Call: WRITE
  • Prompt: ?50
  • Line Location: A2R+24
Function Call: WRITE
  • Prompt: "(Based on dispense unit)"
  • Line Location: A2R+24
Function Call: WRITE
  • Prompt: ?0
  • Line Location: A2R+25
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+25
Function Call: WRITE
  • Prompt: ?28
  • Line Location: A2R+26
Function Call: WRITE
  • Prompt: "-SOURCE-"
  • Line Location: A2R+26
Function Call: WRITE
  • Prompt: ?39
  • Line Location: A2R+27
Function Call: WRITE
  • Prompt: $P($G(^PRC(440,+$P(^PRC(441,+NO,2,+VE,0),U),0)),U)
  • Line Location: A2R+27
Function Call: WRITE
  • Prompt: X
  • Line Location: A2R+28
Function Call: WRITE
  • Prompt: ?39
  • Line Location: B2+1
Function Call: WRITE
  • Prompt: X
  • Line Location: B2+1
Function Call: WRITE
  • Prompt: !,"--------------------------------------------------------------------------------",!!
  • Line Location: HEAD+1
Routine Call
  • DIALOGU
  • Line Location:
    • DT

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" A2R+15
^DIC(51.5 - [#51.5] A2R+12, A2R+16
^DIPT(3786 BEGIN+2
^PRC(440 A2R+27
^PRC(441 - [#441] BEGIN+8, A1+1, A2+1, A2R+4, A2R+7, A2R+11, A2R+15, A2R+22, A2R+27, A2R+28
^PSDRUG - [#50] BEGIN+7, A2R+5, A2R+8, A2R+12, A2R+16, A2R+19, A2R+25
^UTILITY($J T
^VA(200 - [#200] A2R+28, A2R+29, B2+1

Label References

Name Line Occurrences
@( M
A1 BEGIN+8
A1R BEGIN+9
A2 A1+1
A2R A1+2
B2 A2R+29
B2R A2R+30
BEGIN PSADRI+1
N BEGIN+4, BEGIN+5, BEGIN+6, BEGIN+7, A2R+4, A2R+5, A2R+6, A2R+7, A2R+8, A2R+10
, A2R+11, A2R+12, A2R+13, A2R+14, A2R+16, A2R+17, A2R+18, A2R+19, A2R+20, A2R+21
, A2R+25, A2R+26, A2R+27, A2R+28, B2+1
T BEGIN+7, A1+1, A2R+5, A2R+8, A2R+12, A2R+16, A2R+19, A2R+25, A2R+28

Naked Globals

Name Field # of Occurrence
^( A1+1, B2+1
^(0 BEGIN+8, A2R+4, A2R+5, A2R+12, A2R+16, A2R+28, A2R+29
^(1 T
^(2 A2R+8
^(660 A2R+12, A2R+16, A2R+19, A2R+25

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> % BEGIN+6*
>> D(0 BEGIN+8, A2R+29
>> D0 BEGIN+7, BEGIN+8*, A1+1, A2+1, A2R+3, A2R+4, A2R+7, A2R+28, A2R+29*, B2+1
, B2R+1*, A1R+1*
>> D1 A1+1*, A2+1
>> DILCT T+1*, BEGIN+1*
>> DIOT(2 T
DIP BEGIN+6!, A2R+3!, A2R+4!, A2R+5!, A2R+8!, A2R+9!, A2R+11!, A2R+12!, A2R+14!, A2R+15!
, A2R+16!, A2R+18!, A2R+19!, A2R+21!, A2R+22!, A2R+23!, A2R+25!, A2R+27!, A2R+28!, B2+1!
DIP(1 BEGIN+6*, A2R+5*, A2R+8*, A2R+12*, A2R+16*, A2R+19*, A2R+25*
DIP(101 BEGIN+8*, A2R+4*, A2R+28*
DIP(201 A2R+29*, B2+1*
>> DISTP T+1*, BEGIN+1*
DIWF T, A1R+2!
>> DIWL A2+1*
>> DIWR A2+1*
>> DIXX M
>> DN T, BEGIN+1*, BEGIN+4, BEGIN+5, BEGIN+6, BEGIN+7, A1+1, A2R+3, A2R+4, A2R+5
, A2R+6, A2R+7, A2R+8, A2R+9, A2R+10, A2R+11, A2R+12, A2R+13, A2R+14, A2R+15
, A2R+16, A2R+17, A2R+18, A2R+19, A2R+20, A2R+21, A2R+22, A2R+23, A2R+25, A2R+26
, A2R+27, A2R+28, B2+1
DUZ("LANG" DT
>> DXS BEGIN+2*
>> DXS(1 BEGIN+8
>> DXS(2 A2R+14
>> DXS(3 A2R+18
>> DXS(4 A2R+23
>> DXS(5 A2R+29
>> I(0 BEGIN+3*, BEGIN+8, A2R+5, A2R+8, A2R+12, A2R+16, A2R+19, A2R+25, A1R+1
>> I(100 BEGIN+8*, A2R+29, B2R+1, A1R+1!
>> I(101 A1+1*
>> I(200 A2R+29*, B2R+1!
IOSL T
>> J(0 BEGIN+3*
>> J(100 BEGIN+8*, A1R+1!
>> J(101 A1+1*
>> J(200 A2R+29*, B2R+1!
>> NDC A2R+9*, A2R+11
>> NO A2R+3*, A2R+11, A2R+15, A2R+22, A2R+27
>> PR A2R+22*
U DT+1, BEGIN+7, BEGIN+8, A2R+4, A2R+5, A2R+7, A2R+8, A2R+11, A2R+12, A2R+15
, A2R+16, A2R+19, A2R+22, A2R+25, A2R+27, A2R+28, A2R+29, B2+1
>> VE A2R+11*, A2R+15, A2R+22, A2R+27
>> X BEGIN+6*, BEGIN+7*, BEGIN+8*, A2+1*, A2R+4*, A2R+5*, A2R+7*, A2R+8*, A2R+9, A2R+12*
, A2R+16*, A2R+19*, A2R+23, A2R+25*, A2R+28*, A2R+29*, B2+1*
>> X1 BEGIN+6*
Y DT, DT+1, DT+2, BEGIN+6!, A2R+3!, A2R+4!, A2R+5!, A2R+8!, A2R+9!, A2R+11!
, A2R+12!, A2R+14!, A2R+15*!, A2R+16!, A2R+18!, A2R+19!, A2R+21!, A2R+22!, A2R+23!, A2R+25!
, A2R+27!, A2R+28!, B2+1!, A1R+2!
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All