SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 04 | November | 2004 ]

<< Previous Message << >> Next Message >>


Date: Thu, 4 Nov 2004 16:34:55 PST8
From: "Steven Levine" <steve53@earthlink.net >
Reply-To: scoug-help@scoug.com
To: SCOUG Help <scoug-help@scoug.com >
Subject: SCOUG-Help: Basic rexx question

=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

In <31350.15.27.40.04.11.2004@seadog.reno.nv.us>, on 11/04/04
at 03:27 PM, "Jon Harrison" said:

>My first attempt involved deleting the original and copying the modified
>email to back to the same name. This didn't work, I guess PMMail detects
>the file deletion and even though the filename isn't changed, it fails.

How does PMMail invoke your REXX script? MR/2 invokes the presend script
synchronously, so an delete/rewrite is no problem. PMMail might be doing
some sort of polling, waiting for your script to finish.

>writes the file out from a stem to a tmpfile line by line and when it
>reaches the end of the data, I have it continue writing blanks (x20)
>until it reaches the same number of lines as the original file.

While it sounds silly, it's a good solution in some cases. I do the same
thing in some scripts to do subject rewriting. However, I rewrite only
the subject line retaining the original length. This is a lot faster than
rewriting the entire message body.

>Unfortunately, for whatever reason once it reaches the end of the new
>data and starts writing blanks, at that point it starts 'pushing' the
>remaining old data 'down', as if a text editor switched from overwrite to
>insert.

I'd have to see your code, but this really smells like a logic error of
some sort.

>So I'm stuck. If there is a way to do this, I'm all ears.

You might be able to use:

'copy nul' fileName

This will empty the file and I may not delete it first.

>I wrote this off-list, I hope that's ok.

I can't see any reason to not keep this on the list. This way others can
learn too.

Steven

--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.093c_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 04 | November | 2004 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.