Re: Aruments To Program Call For Schedule Purge

"Heavilin, Bob" <BHeavilin-i9rTe518wtdWk0Htik3J/[email protected]>
Newsgroups gmane.comp.systems.as400.mapics
Message-ID <[email protected]>
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-i9rTe518wtdWk0Htik3J/[email protected]
 
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-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mapics-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Iain Wilson
Sent: Thursday, August 30, 2012 4:42 AM
To: mapics-l-Zwy7GipZuJhWk0Htik3J/[email protected]
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-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives at http://archive.midrange.com/mapics-l.

_______________________________________________
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list
To post a message email: MAPICS-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mapics-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.