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

Thanks for the tip. Never thought of that.

In the words of Gerry and The Pacemakers

" I like it, I like it"

Regards

Iain




date: Thu, 30 Aug 2012 12:25:12 +0000
from: "Heavilin, Bob" <BHeavilin@xxxxxxxxxxxx>
subject: Re: [MAPICS-L] Aruments To Program Call For Schedule Purge

Here's a trick we use frequently. It will work for most, possibly all, MAPICS jobs that are submitted from the menus:

Put the appropriate job queue on hold, so the job won't start. Submit the program from the menu. Make a copy of the JOBACT file. Release the job queue.

Examine the JOBACT file. You'll find a record that identifies the program to be called. The complete LDA is in that record, and you should be able to figure out how to set the LDA. You'll also need to start and stop MAPICS, and you actually call a different program with the one you want to run as a parm. It's a bit annoying, but it works. Here's a sample that runs the MO archive:

STRMAPICS ENDS(&ENDS)

CALL PGM(AXZLDA0R) PARM(*CURR 000000 *LAST 000 +
&LDA *RTV &RTCD)
CHGVAR VAR(%SST(&LDA 6 4)) VALUE('0000')
CHGVAR VAR(%SST(&LDA 20 11)) VALUE('WU PA00C102')
CHGVAR VAR(%SST(&LDA 31 11)) VALUE('0202020 25')
CHGVAR VAR(%SST(&LDA 42 11)) VALUE('02275 2')
CHGVAR VAR(%SST(&LDA 59 11)) VALUE('02270600000')
CHGVAR VAR(%SST(&LDA 70 11)) VALUE('20110110 3')
CHGVAR VAR(%SST(&LDA 85 3)) VALUE(&SITE)
CHGVAR VAR(%SST(&LDA 110 11)) VALUE('AMIPJK 1111')
CHGVAR VAR(%SST(&LDA 127 2)) VALUE('11')

CALL PGM(AXZPSJ) PARM(&LDA 'AMIPJL')

ENDMAPICS

It can also be helpful to submit jobs multiple times with different parameters and then examine all the JOBACT records. This lets you see what changes in the LDA when you select different parameters.

Good Luck!

Bob Heavilin
Senior Systems Analyst
Stant Corporation
bheavilin@xxxxxxxxxxxx
?
This e-mail and any attachments contain material that is confidential for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. Tokheim UK LTD. Registered in Scotland No. 58090 Registered Office: Exchange Tower, 19 Canning Street, Edinburgh EH3 8EH


This message has been scanned for malware by Websense. www.websense.com

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.