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