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
 
NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not the intended recipient, please do not read, distribute or take action in reliance upon this message.  If you have received this in error, please notify Stant immediately by return email and promptly delete this message and its attachments from your computer system.  We do not waive attorney-client or work product privilege by the transmission of this message.
 

-----Original Message-----
From: mapics-l-bounces@xxxxxxxxxxxx [mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of Iain Wilson
Sent: Thursday, August 30, 2012 4:42 AM
To: mapics-l@xxxxxxxxxxxx
Subject: [MAPICS-L] Aruments To Program Call For Schedule Purge

Hi All

We want to automate the REP 'Schedule Purge' and from the menu I find that the program Appears to be AMQC40.

It takes an argument of the LDA.

Does anyone out there have any idea if this is the correct program, how the LDA would be populated, or how I would find out (Infor support do not have the info) ?

Or alternatively is there anyone out there who has automated this process and can give me a few hints and tips.

Any help would be greatly appreciated.


Regards

Iain Wilson



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


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