Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: AIBCVT00

AIBCVT00.m

Go to the documentation of this file.
  1. AIBCVT00 ;IHS/DDPS/DFM-IBM STAT RECORDS SITE PARAMETERS [ 01/12/89 1:06 PM ]
  1. ;1.3; 12/31/88 RESTRUCTURE, SEPERATE SITE ROUTINE
  1. S AIBJSL=$P(^AUTTSITE(1,0),U,1),AIBJSA=$P(^AUTTLOC(AIBJSL,0),U,4)
  1. S AIBJSAC=$P(^AUTTAREA(AIBJSA,0),U,2) I $L(AIBJSAC)>0 G CKAREAN
  1. S AIBMSG="No Area Code in RPMS Site file - Program Aborted",AIBA="A" G RETURN
  1. CKAREAN ;GET AREA NAME
  1. S AIBJSAN=$P(^AUTTAREA(AIBJSA,0),U,1) I $L(AIBJSAN)>0 G CKACCTP
  1. S AIBMSG="No Area Name in RPMS Site file - Program Aborted",AIBA="A"
  1. G RETURN
  1. CKACCTP ;GET AREA'S ACCOUNTING POINT
  1. S AIBJSAP=$P(^AUTTSITE(1,0),U,2) I $L(AIBJSAP)>0 G CKREMDPS
  1. S AIBMSG="No Area Accounting Point in RPMS Site file - Program Aborted"
  1. S AIBA="A" G RETURN
  1. CKREMDPS ;GET AREA'S REMOTE ID FOR DDPS MAINFRAME
  1. S AIBJSRD=$P(^AUTTSITE(1,0),U,3) I $L(AIBJSRD)>0 G CKREMPCC
  1. S AIBMSG="Parameter for DDPS Remote not present in RPMS Site file - Program Aborted"
  1. S AIBA="A" G RETURN
  1. CKREMPCC ;GET AREA'S REMOTE ID FOR PARKLAWN MAINFRAME
  1. S AIBJSRP=$P(^AUTTSITE(1,0),U,4) I $L(AIBJSRP)>0 G CKREMNIH
  1. S AIBMSG="Parameter for PCC Remote not present in RPMS Site file - Program Aborted"
  1. S AIBA="A" G RETURN
  1. CKREMNIH ;GET AREA'S REMOTE ID FOR NATIONAL INSTITUTE OF HEALTH MAINFRAME
  1. S AIBJSRN=$P(^AUTTSITE(1,0),U,5) I $L(AIBJSRN)>0 G RETURN
  1. S AIBMSG="Parameter for NIH Remote not present in RPMS Site file - Program Aborted"
  1. S AIBA="A" G RETURN
  1. RETURN ;RETURN TO CALLING ROUTINE
  1. Q