× 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 Andy,



<snip>

We have an CLP batch program that calls two separate ILE programs and each
of them generate an excel spreadsheet using POI.

The first ILE program creates the excel spreadsheet correctly but the second
when it creates the spreadsheet it has junk in the cells.

What is confusing is when we call the two ILE programs interactively they
both work correctly.

Is there something special in our CLP that we should have coded?
</snip>



Check to see what activation group your CL program has been compiled to
run in. If it is set to *CALLER then you may have odd things happen.
This is because your program is called from QCMD which is an OPM
program and your program is defined to run in the activation group of
the *CALLER. IIRC this means it will run in the default activation
group. When you sign on to an interactive session your activation group
may be set to a non-default activation group. This would explain the
differences you see.



To get around this simply recompile you CL program into a named
activation group - QILE is the standard but you can name it anything
you like (within reason). Alternatively, as your process will run to completion in batch you could compile your program into a *NEW activation group.



Good luck, and let us know how it goes.



Cheers



Larry Ducie
_________________________________________________________________
Time for a new car? Sell your old one fast!
http://clk.atdmt.com/NMN/go/157637060/direct/01/

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.