Use of TEMPS and their resetting

doug.brown at ntlworld.com doug.brown at ntlworld.com
Wed May 27 08:19:36 CDT 2009


John

Question is - should you be using temps at all - if the check-no and transit-no are in the header and detail(/cluster) records, Quick/Qdesign will have some automatic item initialisation which sets the items in the detail/occurs file to those in the header aka primary record - what we always used to recommend, is reading the qdesign output at compile time - if memory serves correct, these automatic item initialisations are warnings (so don't compile with warnings turned off).

Best Regards
Doug


--------------
Douglas Brown.
MBA (Open), Prince2 Practitioner.
(+44.7710-716147)


---- John Stires <jstires at EBDS.com> wrote: 

=============
I am working on a screen that accesses only one file.  It is indexed, but I am not using any of the indexes, essentially using it as a sequential file.  The records are pre-populated with some data, my screen will allow the user to input a Check Number, Transit Number and an AMT PD amount only.  When the records come in, the Check Number and Transit Number fields are both blank.  Because there are a number of members paid on one check, I have a header that contains the Check Number and Transit Number.  Then there is a cluster with one line per member.  The user will enter the Check Number and Transit Number once, in the header, and then just go down through the members entering only the AMT PD.  There is a Last Date Update field that automatically gets SYSDATE.

My problem is that the TEMP I am using for the Check Number and Transit Number in the header gets reset before it moves to the second update record.  At best, only the first record gets the Check Number and Transit Number and all other fields get updated correctly on the only the first record.  After the first record, all fields are correctly updated correctly EXCEPT the Check Number and Transit Number, which come out blank.

I suspect there is a timing issue the TEMPS for the Check Number and Transit Number plaguing me here, but, for the life of me, I am missing some something.  I have tried using RESET AT STARTUP and AT MODE.  I have tried using an OCCURS WITH, OCCURS n TIMES, with NO OCCURS, and with and without a SELECT for Check Number and Transit Number to be blank and with the SELECT for the Check Number and Transit Number to equal the TEMPS.

I need a little guidance on these TEMPS and their resetting.  I am fast running out of ideas.

We are using version 8.40 D1 on an OpenVMS V7.3-1.

Thanks for any help you al can offer me.

Thanks,
John


More information about the powerh-l mailing list