AS400 Mid Range/AS400 RPG example

Advertisement


Question
http://www.fuel-efficient-vehicles.org/pwsdb/pgm/tutorial-view.php?topic=15
On this example from your site, i find it somewhat confusing, sorry. i will attempt to arrange the call in the order i understand them, am i correct? all objects compiled but i got an out of order seq msg

call prtobjcl which loads prtobjc1
which call prtobjc1 which loads prtobj00
which then call prtobjc12
which then calls prtobjr1
which then call prtobjr2 and prints it

i hope this isnt too much to ask, but is very confusing the way they are labeled in the example

Answer
I agree that the organization of the example is confused.

1. Command PRTOBJL invokes CL program PRTOBJC1

2. PRTOBJC1 calls (or alternately submits to batch - see code that is commented-out) CL program PRTOBJC2.

3. PRTOBJC2 displays object description information to outfile QADSPOBJ, then calls RPG program PRTOBJR1 to load data to indexed work file PRTOBJ00, then calls RPG program PRTOBJR2 to read the file in key sequence and print the report.

- Laird


4.

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.