Quick Procedures

John Stires pencarver at sbcglobal.net
Fri Dec 9 11:15:07 CST 2005


I am working on a rather complex screen.  Those working on this screen before me have pretty well disabled and/or misused all of the default procedures so there is very little left to Powerhouse to handle on its own.
   
  My question is this, there is a PUSH UPDATE in one of the designer procedures.  When this happens, does it automatically initial the PREUPDATE first and then go to the UPDATE procedure or does it go straight to the UPDATE procedure bypassing the PREUPDATE.\We are having big time response problems with this program, a very good likely hood this is caused by deadlocks.  A user update to this screen is now 45 minutes to 1 1/2 hours.  Not very good.
   
  All of the code that should be in the PREUPDATE procedure is currently located in the UPDATE procedure.  There are PUTs sprinkled through all of this code making this a time consuming process.  I am looking to reduce the time spent in the UPDATE procedure by moving much of this code to the PREUPDATE procedure.  I am very sure there are many other things to be done as well.
   
  The second issue with this screen is how it handles the detail file updates.  The screen defines a cluster, but uses temp items, named after the fields in the real record.  The file statement looks like:
   
  file OBLIGATION_TRANS in CARS_DB designer noitems need all &
  transaction query for query, process &
  transaction update for update

  with the field statements looking like:
   
  cluster at 19,1 occurs 5
  field T_REMAIN_AMT                      &
      label " "                         &
      hidden nochange                   &
      pic "^^^,^^^,^^^.^^" bwz signif 4
  field T_POSTBACK_BALANCE                &
      upshift required                  &
      values "Y","N"
  field T_DTL_REASON_CODE                 &
      hidden required upshift
  field T_DTL_REASON_DESC                 &
      display
  field T_TRANS_AMT                       &
      entry if T_POSTBACK_BALANCE = "N" &
      pic "^^^,^^^,^^^.^^" bwz input scale 2 signif 4
  cluster
   
  In the UPDATE procedure, there is a FOR structure using 5 as its limit.  The users get "reasonable response time", 5 minutes, if they only enter up to 5 entries in these fields.  When they enter more than 5, their response time goes to over 45 minutes.
   
  Needles to say I am under some serious pressure here to make some big improvements.
   
  We are running on VMS 6.2, Powerhouse version 7.10e6, and DEC RDB, I think version 6.1.
   
  Thanks for any good impute,
   
  John Stires
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20051209/663cb11b/attachment.html


More information about the powerh-l mailing list