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




> -----Original Message-----
> Subject: [C400-L] Program ends, no messages, logs, etc
> 
> I am running a program that does a real quick and easy call to system().
> I get no output that the program ends, except from a printf I do right
> before the call to system.  Im expecting to get some 

When a program dies abnormally on the iSeries (for ILE/C) you don't get a core 
dump as such, what you get is either a nice CPF/MCH error message in the job 
log or on the status line. 

If your system() call is going to generate output (for example system("dsppfm 
output(*print)")) then the output for that system command, if it can generate 
output, will be in a spoolfile. If you want the output from a system call to 
appear on the screen, them it's going to be much more involved. If you are 
expecting the command you are calling in the system() function to 'take over 
the screen' and work as if the user had typed the command at the command line, 
then this will not work, and again is much more involved than simply calling 
system(). 

Have you put a printf() after the call to system() to see if you get that 
outputted too?

--phil 




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.