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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: AMHEYRE

Package: Mental Health Social Services

Routine: AMHEYRE


Information

AMHEYRE ; IHS/CMI/LAB - REDO A PREVIOUS MHSS EXPORT ;

Source Information

Source file <AMHEYRE.m>

Call Graph

Call Graph Total: 12

Package Total Call Graph
Mental Health Social Services 9 ERRLOG^AMHEYD  RECORD^AMHEYD2  (,QUEUE)^AMHEYDI  ERRBULL^AMHEYDI3  (,RUNTIME)^AMHEYEOJ  INIT^AMHEYRE1  ^AMHEYRLG  EN^AMHEYTAP  
CALLDIE^AMHLEIN  
VA Fileman 2 NOW^%DTC  ^DIR  
IHS Patient 1 KILL^AUPNPAT  

Entry Points

Name Comments DBIA/ICR reference
EN ;EP FROM TASKMAN
PROCESS ;
EOJ ;
CNTBUILD ;count and build tx
INIT ;
ABORT ; ABNORMAL TERMINATION
START ;
PURGE2SF ;
SETUTIL
TAPE ; COPY TRANSACTIONS TO TAPE
RESETSF ; kill MHSS xref and set flag if tx 23 or 24 generated
PROCESS2 ;
CHKLOG ; CHECK LOG FILE
RESETV ; RESET RECORD DATA IN LOG

External References

Name Field # of Occurrence
NOW^%DTC EN+2
ERRLOG^AMHEYD CNTBUILD+1
RECORD^AMHEYD2 PROCESS2+7
^AMHEYDI START+2
QUEUE^AMHEYDI START+6
ERRBULL^AMHEYDI3 ABORT+2
^AMHEYEOJ EOJ+1
RUNTIME^AMHEYEOJ EN+9
INIT^AMHEYRE1 INIT+1
^AMHEYRLG EN+7
EN^AMHEYTAP TAPE+1
CALLDIE^AMHLEIN RESETV+5, RESETSF+1
KILL^AUPNPAT PROCESS2+7
^DIR EN+14, ABORT+4

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Bye",!!
  • Line Location: START+3
Function Call: WRITE
  • Prompt: !!,"Bye",!!
  • Line Location: START+5
Function Call: WRITE
  • Prompt: !!,"Bye",!!
  • Line Location: START+7
Function Call: WRITE
  • Prompt: !!,"Okay your request is queued!",!!
  • Line Location: START+8
Function Call: WRITE
  • Prompt: !!,"-->There are more than three generations of RECORDs stored in the LOG file.",!,"-->Time to do a purge."
  • Line Location: CHKLOG+2
Function Call: WRITE
  • Prompt: !!,"Abnormal termination!! QFLG=",AMH("QFLG")
  • Line Location: ABORT+3
Routine Call
  • DIR
  • Line Location:
    • EN+14
    • ABORT+4

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^AMHREC - [#9002011] Classic Fileman Calls
^AMHPSUIC - [#9002011.65] Classic Fileman Calls
^AMHXLOG - [#9002014] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AMHERRC("B" ABORT+1
^AMHPSUIC - [#9002011.65] PROCESS+8, PROCESS+9
^AMHREC - [#9002011] PROCESS2+4, PROCESS2+5
^AMHRECD - [#9002014.1] PROCESS+13, PROCESS+15, PROCESS+16, PROCESS+17
^AMHRECD("B" PROCESS+11
^AMHXLOG - [#9002014] PROCESS+1!, PROCESS+4, PROCESS+7, CHKLOG+1, RESETV+2*
^BHSXDATA PROCESS+21*, CNTBUILD+4*
^XTMP("AMH" CNTBUILD+3*
^XTMP("AMHREDO" PROCESS2+3*, SETUTIL*, RESETV+2, RESETV+4, RESETV+5, RESETV+7!
^XTMP("AMHSF" PROCESS+20*, RESETV+10, RESETV+11!, PURGE2SF+1, RESETSF+1

Label References

Name Line Occurrences
ABORT EN+3, EN+6, EN+8, EN+10, TAPE+1, ABORT+2
CHKLOG EN+11
EOJ START+3, START+5, START+7, START+8, EN+3, EN+6, EN+8, EN+10, EN+15, ABORT+2
INIT START+4
PROCESS EN+5
PROCESS2 PROCESS+4
PURGE2SF RESETV+10
RESETSF PURGE2SF+1
RESETV EN+12
TAPE EN+13

Naked Globals

Name Field # of Occurrence
^( RESETV+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% EN+2!
%H EN+2!
%I EN+2!
AMH EN+16!
AMH("A" PROCESS+2*
AMH("BT" EN+4*
AMH("CONTROL DATE" , PROCESS+5*
AMH("COUNT" PROCESS+2*, PROCESS+19*, PROCESS+21, CNTBUILD+2*, CNTBUILD+4
AMH("D" PROCESS+2*
AMH("ERROR CO UNT" , PROCESS+2*, CNTBUILD+1*
AMH("I" CHKLOG+1*
AMH("M" PROCESS+2*
AMH("MAIN TX DATE" , EN+2*, PROCESS+20, CNTBUILD+3
AMH("QFLG" START+3, START+5, START+7, EN+3, EN+6, EN+8, EN+10, PROCESS+4, TAPE+1, ABORT+1
, ABORT+3
AMH("QFLG1" ABORT+1*
AMH("RUN LOG" , PROCESS+1, PROCESS+4, PROCESS+7, CHKLOG+1, RESETV+2, ABORT+1
AMH("RUN STAR T" , EN+2*
AMH("X" CHKLOG+1*, CHKLOG+2, RESETV+2*, RESETV+4*, RESETV+5
AMH("Y" RESETV+2*
>> AMHCNT EN+1*, PROCESS2+2, RESETV+2, RESETV+5, RESETSF+2
>> AMHCNT1 EN+1*
>> AMHCNT2 EN+1*
>> AMHCNTR PROCESS+3*, PROCESS+5*, RESETV+1*, RESETV+3*, RESETV+9*
AMHE PROCESS2+1!, CNTBUILD+1
>> AMHO("QUEUE" START+8
>> AMHO("RUN" START+1*, CNTBUILD+3
>> AMHR PROCESS+4*, PROCESS2+3, PROCESS2+4, PROCESS2+5, CNTBUILD+3, SETUTIL, PURGE2SF+1*, RESETSF+1
>> AMHREC PROCESS2+5*, PROCESS2+6
>> AMHRIEN PROCESS+11*, PROCESS+12, PROCESS+13, PROCESS+15, PROCESS+16, PROCESS+17
>> AMHSFC PROCESS+19*
>> AMHSFIEN PROCESS+7*, PROCESS+8, PROCESS+9, PROCESS+20
>> AMHSFR PROCESS+5*
>> AMHSREC PROCESS+9*, PROCESS+10
AMHTX PROCESS+13*, PROCESS+18*, PROCESS+21, PROCESS2+1!, CNTBUILD+4
AMHV PROCESS2+1!
AMHV("R DATE" , RESETV+9*, RESETV+10*, PURGE2SF+1
AMHV("TX GENE RATED" , PROCESS2+3*, CNTBUILD+3*, SETUTIL
AMHV("V DATE" , PROCESS2+6*
>> AMHY PROCESS+13*, PROCESS+15, PROCESS+18
>> AMHZ PROCESS+15*, PROCESS+16, PROCESS+17
DA EN+14!, RESETV+5*!, RESETSF+1*, ABORT+1*, ABORT+4!
>> DFN PROCESS+10*
>> DIE RESETV+5*, RESETSF+1*, ABORT+1*
DIR EN+14!, ABORT+4!
DIR("A" EN+14*, ABORT+4*
DIR(0 EN+14*, ABORT+4*
DR RESETV+5*!, RESETSF+1*, ABORT+1*
U PROCESS+10, PROCESS+18, SETUTIL
>> X PROCESS+14*, PROCESS+18
>> ZTQUEUED EN+1, EN+3, EN+6, EN+8, EN+9, EN+10, EN+11, EN+14, PROCESS+3, PROCESS+6
, TAPE+1, RESETV+1, RESETV+3, ABORT+2
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All