× 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.



>Hmmm, do you really need multiple writes to the IFS file? Have you 
tried writing to the IFS file in one shot? That is: 
"write(handle,ptr,bytesRead);"

Holy smokes!  We should be able to do that now since we are operating
entirely with pointers!  cool...

>We're making some real progress! But I'm still concerned over the 
exception monitoring. In particular, consider an exception from 
"UsrSpc_create". The message 'CGI_readToFile: Error reading Standard 
Input' is displayed, the procedure continues, and then we get to 
"UsrSpc_delete". Will that succeed? And what happens if 
"IFS_openFile" fails? or "write"?

I am actually going to be implementing my home grown error "throwing" based
on the conversation that we had in the RPG400L list awhile back.  So if
IFS_openFile "throws" an error it will be caught and then possibly
re-thrown.  Actually that is what I should be doing instead of the CGI_out's
in that program, throwing them to the calling procedure.

Latest version (with Error throwing):
http://mowyourlawn.com/temp/CGI_readToFile.txt

Aaron Bartell



-----Original Message-----
From: Hans Boldt [mailto:boldt@xxxxxxxxxx]
Sent: Thursday, September 18, 2003 11:13 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Re: QtmhRdStin and QzhbCgiParse Limitation


Bartell, Aaron L. (TC) wrote:
> ...
> 
> Latest version:
> http://mowyourlawn.com/temp/CGI_readToFile.txt
> 

We're making some real progress! But I'm still concerned over the 
exception monitoring. In particular, consider an exception from 
"UsrSpc_create". The message 'CGI_readToFile: Error reading Standard 
Input' is displayed, the procedure continues, and then we get to 
"UsrSpc_delete". Will that succeed? And what happens if 
"IFS_openFile" fails? or "write"?

Hmmm, do you really need multiple writes to the IFS file? Have you 
tried writing to the IFS file in one shot? That is: 
"write(handle,ptr,bytesRead);"

Cheers! Hans


_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.