|
Bud, I have done this while working as an affiliate (in a previous life). There are a few critical pieces, it must run within an active MAPICS session - use the STRMAPICS/ENDMAPICS commands for that (creates JOBACT record). Secondly, the LDA contains all the request data for the Shop Packet printing. In order to decipher the LDA, you really need source programs to find all the settings. In the past, I have looked at the interactive job to chase how the LDA gets built, and used that to build my own to call the batch program (or replicate the submit). Typically, the program dependent settings (prompt entries) will be in the first 200 bytes, although I believe the shop packets use something in the 700+ range too. If my memory serves me, the batch program that gets called is AMIPHP or AMIPHL (don't quote me on this). Does anyone remember the old logic manuals? Last place the program flow was really documented, and if you still have them, most applications have probably not changed drastically in the overall flow. You may also want to look at the Technical Architecture manual (don't remember exact name) which documents the standard LDA fields, the JOBACT records and temporary objects in QTEMP. Regards, Gregory Novak Manager North American Technical Services Momentum Utilities Pty Ltd (630) 985-1736 gnovak@jacana.com www.jacana.com -----Original Message----- From: Shaw, Dave [mailto:dshaw@syratech.com] Sent: Thursday, September 26, 2002 7:19 AM To: 'mapics-l@midrange.com' Subject: RE: Auto Submit Order Release with Shop Packet This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. -- [ Picked text/plain from multipart/alternative ] Bud, I know how to figure it out, but it takes a day or two to work through it - it's not a trivial task. The request string that MAPICS passes in makes sense to the MAPICS request processor AMZPBJ and the batch control program it transfers to, AXZBJ. They don't ship the source for AXZBJ any more, but it would only help you understand what the formatting means a little anyway. Basically, the string passed in serves mainly as a pointer to the JOBACT record previously created for the job. You need to reverse-engineer how to build the JOBACT record and the submit string, and then you'll be able to make it work. Usually the simplest way to do this kind of thing, IF you have source, is to take apart the interactive prompt for what you want to do and replace the screen handling with another source of input, whether it's hard-coding, one or more data areas, or a record in a file. Then use STRMAPICS/ENDMAPICS to set the environment for your modified prompt and you're good to go. Good luck! Dave Shaw MAPICS-L Moderator Rauch Industries, Inc. Gastonia, NC -----Original Message----- From: Bud Roble [mailto:BRoble@CharlesRobleConsulting.com] Sent: Wednesday, September 25, 2002 5:44 PM To: 'Mapics Mailing List (mapics-l@midrange.com)' Subject: Auto Submit Order Release with Shop Packet OK, since nobody seems to know how to submit the "Create Shop Packet" from a custom program, how about the "Order Release with Shop Packet?" Does anyone know how to do that? I can't believe MAPICS makes it so difficult to submit a simple report from custom code!! *$&#^@$%# I held the JOBQ and submitted the job, then went and looked at the Job Log for the Submitted Job..... it makes no sense to me.... Not even a normal AS400 command. :-( Can anyone interpret this s____ for me?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.