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

ECX323PT.m

Go to the documentation of this file.
  1. ECX323PT ;ALB/JAP - PATCH ECX*3*23 Post-Install ; February 26, 1999
  1. ;;3.0;DSS EXTRACTS;**23**;Dec 22, 1997
  1. ;
  1. POST ;Entry point
  1. ;update field #12 in each file #727.1 record with default value
  1. N DIC,DIE,DA,DR,X,Y,IEN,ECX,ECXX,HEAD,MAX
  1. D MES^XPDUTL("Updating EXTRACT DEFINITIONS file (#727.1) with default")
  1. D MES^XPDUTL("value for new MAX. LINES PER MESSAGE field (#12)...")
  1. D MES^XPDUTL(" ")
  1. F ECX=1:1 S ECXX=$P($T(TEXT+ECX),";;",2) Q:ECXX="QUIT" D
  1. .S IEN=$P(ECXX,U,1),MAX=$P(ECXX,U,2),HEAD=$P(ECXX,U,3)
  1. .K X,Y S DIC="^ECX(727.1,",DIC(0)="XOM",X=HEAD D ^DIC
  1. .I Y=-1 D Q
  1. ..D MES^XPDUTL(" WARNING: Could not update entry #"_IEN_" for "_HEAD_" extract.")
  1. ..D MES^XPDUTL(" Please consult with NVS for DSS EXTRACTS support.")
  1. ..D MES^XPDUTL(" ")
  1. .S (DA,IEN)=+Y,DIE=DIC,DR="12///^S X=MAX" D ^DIE
  1. .D MES^XPDUTL(" Setting record #"_IEN_" for the "_HEAD_" extract with a")
  1. .D MES^XPDUTL(" default value of "_MAX_" in field #12.")
  1. .D MES^XPDUTL(" ")
  1. Q
  1. ;
  1. TEXT ;field #12 defaults for file #727.1 records
  1. ;;1^100^ADM
  1. ;;2^150^CLI
  1. ;;3^200^NOS
  1. ;;4^200^NUR
  1. ;;5^200^DEN
  1. ;;7^200^MOV
  1. ;;8^200^UDP
  1. ;;9^200^PRE
  1. ;;10^200^SUR
  1. ;;12^200^LAB
  1. ;;13^200^RAD
  1. ;;14^200^ECS
  1. ;;15^200^IVP
  1. ;;16^200^TRT
  1. ;;17^200^PAS
  1. ;;18^200^LAR
  1. ;;19^200^ECQ
  1. ;;20^150^PRO
  1. ;;QUIT