Issue with reset of file equations

Guy Werry guy.werry at hbms.ca
Tue Apr 25 15:44:03 CDT 2006


Anne,

It has been eons since I've worked on the HP3000, but I wonder if your problem is due to having the file left as OPEN?

Unless you explicitly close the file BEFORE issuing each file equation, I think that there's a very real danger that Powerhouse will hold onto the ORIGINAL file equation.  I think that other languages would probably do the same thing ... I've done something similar with Cobol programs in years gone by and am very sure that I had to close, issue the file equation and then re-open in order to get the result I wanted.

Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited. 

-----Original Message-----
From: powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com]On Behalf Of
Anne Quirke
Sent: Tuesday, April 25, 2006 3:48 PM
To: powerh-l at lists.sowder.com
Subject: Issue with reset of file equations


Hiya,

I'm new to the list an am hoping that someone out there can help me on this one..its wrecking my head.... I have searched everywhere and can't find the cause of the issue or a suggestions to fix it. 

So if anyone would be able to have a quick look at this and let me know if you can give me any ideas on where to look...I would be very very grateful


background 

Running HP3000 MPEX 
Have a quick screen that gets a file name variable from a table, then 
sets the file equation (file is a message type file) 


File mlgt335A = <file name variable> 
Then a reset mlgt335A is issued. 


The issue is that even in one session no matter how many times  I set 
and reset the file equation it stays set to the first equation that was 

set (first time screen is ran) 


I have issued a listeq in the quick screen to see the file equations 
and they are OK 


First time in the screen if i listeq I get FILE MLGT335A=MLGT335K 
second time into the screen (same session) I get after a listeq FILE 
MLGT335A=MLGT335F 


but when I PUT the data to this file (just after I LISTEQ) the data 
onlt gets written to MLGT335K....I have done a listeq after the reset 
and the file equation is gone...I can't see what I'm doing wrong...any 

ideas... 


thanks a million 
Anne 

-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: &quot;subscribe&quot; in message body to powerh-l-request at lists.sowder.com
Unsubscribe: &quot;unsubscribe &lt;password&gt;&quot; in message body to powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.



More information about the powerh-l mailing list