Temporaries being reset (bit long, sorry)

Kevin O'Sullivan kosullivan@cosworth-racing.co.uk
Tue, 27 Mar 2001 11:58:02 +0100


Hi all,

Firstly, Cognos Bob, if you're reading this, thanks for insight into my
previous problem, It works a treat!

Next on the agenda :-

How do I stop temporary items being reset ?

I've tried the
	Temp BLAH char*10 Reset at Mode
and
	Temp BLAH char*10 Reset at Startup
to no avail.

Given the following excerpt,

----------------------------begin cut----------------------------

Scr REQ2POC Activities Find

Temp T-POLINE   Num*05 RESET AT MODE

File POMAS      Primary
  Select if POREQST = T-POREQST
File REQ-TO-PO  Designer
File POFIL      Detail     Occurs 6

Cluster Occurs with POFIL
Align (,,5)(,,15)
Field T-POLINE          NoId NoLabel
Field PN of POFIL       NoId NoLabel
Cluster

Procedure Internal SETPOFIL
Begin
  Let T-POLINE = POLINE / 100
  Display T-POLINE
End

Procedure Detail Find
Begin
  For Missing POFIL
    Begin
      Get POFIL Via PO using PO of POMAS Opt
      Do Internal SETPOFIL
    End
End

----------------------------end cut----------------------------

I have 5 records (for instance) to be retrieved, and if I compile and run in
debug mode,  I can see that the fields POLINE and T-POLINE are being allotted
the correct values from the detail find. After the fifth is fetched, the
detail find runs once more and after failing to find any more entries, I find
the temp T-POLINE has all zeros on the screen.

I have come across this before, but unfortunately cannot remember how to fix
it.

Thanks for all and any assistance.

Regards,

Kevin

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Kevin O'Sullivan                        Cosworth Racing Limited,  -
- Systems Administrator                   The Octagon,              -
- Business Information Systems            St James Mill Road,       -
-                                         Northampton, England,     -
-                                         NN5 5RA.                  -
-                                         Tel: +44 (0) 1604 598488  -
- mailto:kosullivan@cosworth-racing.co.uk Fax: +44 (0) 1604 598506  -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The views expressed above are mine entirely and in no way represent
those of my employer.



********************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the email administrator - mailadmin@cosworth-racing.co.uk
********************************************************************************