HP3000-L Archives

June 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Boyd <[log in to unmask]>
Reply To:
Mark Boyd <[log in to unmask]>
Date:
Mon, 11 Jun 2001 11:15:11 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (67 lines)
Fopen's are just a little to expensive to be throwing around like that.

-----Original Message-----
From: Chris Goodey [mailto:[log in to unmask]]
Sent: Monday, June 11, 2001 11:14 AM
To: 'Mark Boyd'; [log in to unmask]
Subject: RE: [HP3000-L] READ PREV in hp3000/mpe-cobol?

You could open the file twice, and read it twice.

You could keep a copy of the last record in memory.

Maybe you could read the file twice, keeping track of whatever it is you
needed to know before your wanted to go back a record, then use this info
when you make a second pass (perhaps they want headings with page n of total
in them.)

The real question is what is the original programmer trying to accomplish?
If there is a requirement to go back an indefinite number of records
so that data can be reprocessed based on information found later in the
file,
this is much trickier that just keeping the last record in memory.

Opening the file twice might be the trick for some problems.

Come on people, when you ask for help, give us some idea of what you
want to accomplish, not just a specific question with very little background
info!


-----Original Message-----
From: Mark Boyd [mailto:[log in to unmask]]
Sent: Monday, June 11, 2001 10:54 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] READ PREV in hp3000/mpe-cobol?


The easiest way I can think of is to use the fpoint intrinsic.
You'll have to add a record counter to the app to keep track of which record
you're on, but you can fpoint and read without having to code fopen or
fread.


-----Original Message-----
From: gkeim [mailto:[log in to unmask]]
Sent: Sunday, June 10, 2001 7:31 AM
To: [log in to unmask]
Subject: [HP3000-L] READ PREV in hp3000/mpe-cobol?

Hallo,

does any body know whether there is a READ PREVIOUS command in
hp3000/mpe-cobol?

Thank you.

Andrew.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2