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



Don,
As Rob mentioned in another note, if you submit your program to batch and
then try to copy the spooled file, you'll have a problem. Even if you work
out the details and retrieve the submitted job's job number, you have no
guarantee as to when the spooled file will be available.
If you are currently submitting the "Outside_Print_Package" program to
batch, you could create another CL program that:
1) Call "Outside_Print_Package" program
2) Use RTVJOBA command to retrieve job name, user, and job number.
3) CPYSPLF the report - can use *LAST or *ONLY for spooled file number if
only one report was created.

Then you can submit this new CL program to batch.

Hope this helps!

Richard


On Wed, May 14, 2008 at 10:14 AM, Don Cavaiani <dcavaiani@xxxxxxxxxxxxx>

wrote:

Greetings,

I run a menu step which is a CLP I created and which CALLS an
Outside_Print_Package_Program (CLP & RPG) for which I have no SOURCE CODE.

The program which loads up requests options, and may then be run
interactively or in batch.

I would prefer this to run in batch all the time, but then I need to
CPYSPLF the printer spooled output file and do some further processing. I
want to automatically retrieve and fill in the required CPYSPLF command
options, but I don't think I will know or have access to the "spooled file
number" (unless I manually look it up) when the job is submitted to batch.
Is that correct? Am I missing something simple here?

TIA
Don

Don F. Cavaiani
IT Manager
Amerequip Corp.
920-894-7063

"It's amazing what you can accomplish if you don't care who gets the
credit." Harry S. Truman


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.16 - Release Date: 5/11/2008 12:00
AM



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.