Re: MAPICS-L Digest, Vol 10, Issue 101

Iain Wilson <[email protected]>
Newsgroups gmane.comp.systems.as400.mapics
Message-ID <[email protected]>
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-i9rTe518wtdWk0Htik3J/[email protected]>
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-i9rTe518wtdWk0Htik3J/[email protected]
?
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.
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.