View Full Version : Batch Job
Guest.Visitor
03-12-2003, 03:26 AM
How can we run multiple program at a time? Say For example Program A calls Program B , again Program B calls Program C. Now I want to run only Program A how will I do without ending Program C and B.
Guest.Visitor
03-12-2003, 03:28 AM
Assume that if am submitting more than one job at a time, how they will get execute? (like will execute all at a time or one by one)
Guest.Visitor
03-12-2003, 03:28 AM
What is the difference between Data Queue and Data Structure.
J.Pluta
03-12-2003, 05:00 AM
Under normal circumstances, RPG is not multi-threaded. When Program A calls Program B, Program A stops executing until Program B returns. Similarly, when Program B calls Program C, both Program A and B are suspended. There is something called a "program stack" which keeps track of all the suspended programs. When program C returns, Program B resumes. When Program B returns, Program A resumes.
J.Pluta
03-12-2003, 05:04 AM
This depends on the parameter in the job queue entry (ADDJOBQE/CHGJOBQE) and the MAXJOBS parameter in the subsystem. If either one is set to one, the job queue will be single threaded and jobs will execute one at a time. The higher these values are, the more jobs will execute at the same time.
J.Pluta
03-12-2003, 05:08 AM
A data queue is an OS/400 object that stores data. Chunks of data can be sent to it and retrieved from it. The data can either be keyed, or simply FIFO/LIFO. A data structure, on the other hand, is simply a way of describing memory. For example, a daa structure may define a single 100 byte fields as have one ten-byte alpha field, two ten-byte numeric fields, and then another 70 byte alpha field. The only relationship between data structures and data queues is that data structures are often used in an RPG program to describe the data stored in a data queue. Joe
David Abramowitz
03-12-2003, 10:13 AM
Use a CALL to QCMDEXC to submit the program to a JOBQ. Dave
Guest.Visitor
03-12-2003, 10:56 AM
How to speed up the batch job or what are the way?. Except increasing the priority
Guest.Visitor
03-12-2003, 10:56 AM
Hi, If you'd like to view some photos from COMMON in Indy (opening Day) online, click on: Common Photos (http://www.snap-ebooks.com/COMMON1.htm) If you can help identify people in the photos, please let me know offline (sodonnell@snap-ebooks.com) and I'll update that page as needed.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.