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




John,

You may be able to do what you need by creating a CL with the same name as the submitted CL program, place the new object in a library above the AMALIB_ (if you have a modified XA library, that would be ideal). In this CL you would use the RTVJOBA as stated earlier but you would also retrieve the actual library name were the original CL object was found (normally AMALIB_). The reason you do this step is to not repeatedly call the "new" version.



The "new" version of the CL would basically perform these functions:

1) It would retrieve the original CLP program library

2) It would retrieve the job attributes

3) It would call the original XA CL program (passing the correct parms, of course)

4) When the original program was completed, your "new" version could call any additional programs to perform the CPYSPLF command (and whatever else it needed to do).



By creating the program with the same name, you are essentially modifying the program, without modifying it.


Make sure the new program has the same parms passed as the original and that you call the original program using this technique - CALL PGM(&AMALIB/AMIXXX) PARM(&LDA &whatever &whatever).



If you have any questions you can contact me offline at eric_a_wolf@xxxxxxxxxxxx



Eric Wolf

Independent XA Consultant





I am needing to copy the Mapics Open Orders/Back Orders by Item report
(spool file name AMBDZPFP) to a physical file. I then run the PF through
an RPGLE program to replace the report date in the header to reflect the
date the actual data is for.



The CPYSPLF command requires job name, user and number of the spool file
being copied. My problem is that the report gets submitted to a random
batch job so I have no way of finding the job name or number.



Has anyone done something similar? Is there a Mapics report override
that will help me?



Any help is greatly appreciated.



Thanks,



John Furniss

Applications Programmer

Allied Machine & Engineering, Corp

Phone: 330-343-4283, ext. 8371

email: jfurniss@xxxxxxxxxxxxxxxxx



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


_________________________________________________________________
NEW mobile Hotmail. Optimized for YOUR phone. Click here.
http://windowslive.com/Mobile?ocid=TXT_TAGLM_WL_CS_MB_new_hotmail_072009

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.