× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Booth.

I had made a mistake. Can't use the debugger with an optimized program. I had
put a breakpoint on the line immediately following the line in question. At
that point, displaying the value of mdatetime showed all blanks. At the time I
posted my email, I had been wasting a lot of time on this project. I had
forgotten that the compile options are set for full optimization. But, that
did not occur to me at the time. Earlier, I had commented the code that
created the Date: email header, as a test. No mail went through. Just goes to
some bit bucket somewhere. Forgetting that full optimization was in effect, I
assumed that the problem was being caused by some facet of RPG IV I had not
used. What little programming I do anymore is related to making minor fixes to
RPG III code. I have not written many programs in RPG IV. So, there is a lot
that I don't understand well. Makes things interesting when I need to do
something in RPG IV and only have a relatively good knowledge of RPG III. My
job keeps changing. For months, I did nothing in any form of RPG. Now, I am
being moved back to III and IV. I had recalled that some functions work only
with null-terminated strings, so that made me think that the expression was
being built from the right to the left - again, forgetting about the
optimization.

But, as far as I can tell, the string is formatted correctly for sending an
email. But, when I tested it, I received nothing. In the last few hours, I
have been wondering if the cause is a new problem - other headers not filled
in. When I ran SNDEMAIL, several parameters were populated with *NONE. Since
I was just trying a simple test, I left those as they were.

Bottom line: I jumped over a cliff to a conclusion that was invalid. Still does
not explain the disappearing emails.

John McKee

Quoting Booth Martin <booth@xxxxxxxxxxxx>:

Where is the problem? I am curious if you could try this, just to see
if it works:

mdatetime = 'Date: ' + 'Temp' + ' ' + 'tz';

(the only purpose is to find out where the error is occurring.)


John McKee wrote:
First, I know this is not an RPG list.

I apologize for asking what, to me, seems an especially dumb question.

But, I am clearly missing something. I finally had the time to incorporate the
code Scott posted that he uses to format the Date:. My attempt is resulting in
no Date: header. Using debug, I can comfirm that Scott's code works, and very
nicely. I am, however, managing to snatch defeat from the jaws of victory, as
the Date" header I try to construct shows as totally bklank in debug.

So, maybe I am defining something incorrectly?

Below is the D spec and the attempted assignment statemant:

D mdatetime s 256a




What I am lost on is I tried a fixed format EVAL as well. The Temp and tz
variables have values. But, the variable I am trying to build does not even
have 'Date: '.

Again, I apologize for asking an RPG question, and likely a very basic one at
that.

John McKee


------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.0/1773 - Release Date: 11/7/2008 9:08 AM



--
---------------------------------
Booth Martin
http://www.Martinvt.com
---------------------------------

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.