Post Reply 
hp41cx utility function to trim an ASCII EM file
02-04-2020, 01:05 AM
Post: #1
hp41cx utility function to trim an ASCII EM file
Can anyone help me recall a small utility function that automatically resized an EM flle to the minimum size for its current number of records?

I thought it was in the original forum?

Thanks!
Todd
Find all posts by this user
Quote this message in a reply
02-04-2020, 03:04 AM
Post: #2
RE: hp41cx utility function to trim an ASCII EM file
I believe this post may be what you are looking for?

https://www.hpmuseum.org/cgi-sys/cgiwrap...read=38991

Cheers,

Lyle
Find all posts by this user
Quote this message in a reply
02-04-2020, 03:57 AM
Post: #3
RE: hp41cx utility function to trim an ASCII EM file
You may have to adapt to fit your needs but here’s one:
https://www.hpmuseum.org/forum/thread-65...l#pid60476

André
Find all posts by this user
Quote this message in a reply
02-04-2020, 06:03 AM (This post was last modified: 02-04-2020 06:04 AM by Ángel Martin.)
Post: #4
RE: hp41cx utility function to trim an ASCII EM file
(02-04-2020 01:05 AM)twdeckard Wrote:  Can anyone help me recall a small utility function that automatically resized an EM flle to the minimum size for its current number of records?

I thought it was in the original forum?

Define "minimum number of records": all non-zero, consecutive, at the END of the file; is that it?
So the routine4 will have to start checking from the last record, counting records until finding the first non-zero value. There can be more zero records in-between that one found and the file head, but those should remain, correct?

"To live or die by your own sword one must first learn to wield it apply."
Find all posts by this user
Quote this message in a reply
02-04-2020, 12:58 PM
Post: #5
RE: hp41cx utility function to trim an ASCII EM file
(02-04-2020 03:57 AM)dayd Wrote:  You may have to adapt to fit your needs but here’s one:
https://www.hpmuseum.org/forum/thread-65...l#pid60476

André
perfect! that was it
Find all posts by this user
Quote this message in a reply
02-05-2020, 01:50 AM
Post: #6
RE: hp41cx utility function to trim an ASCII EM file
(02-04-2020 12:58 PM)twdeckard Wrote:  perfect! that was it

Well... not so perfect it seems, I found a mistake and made a little correction;
=> PKFLAS
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)