32 PC*MILER|AS/400 MVS User’s Guide
7.1 Technical Overview
The PC*MILER-AS/400 system uses distributed processing techniques
(i.e. the processing is split into two). The user interface or interactive
software is written in RPG and runs on the AS/400. The mileage
calculation software is written in C++ and runs on a PC in the Windows
environment. The RPG programs communicate with the PC mileage
calculation software through N/S Router or Client Access Express. The
interactive software on the AS/400 allows multiple users to look up point-
to-point mileages and routes for up to thirty stop-off points. The Windows
server application creates a data queue on the AS/400 at startup called
MIDQUE. The server application waits for mileage requests and
processes them when received. The server application responds to an
output queue specified within the request packet.
AS/400 Programs
Files Description
MVSIINQ Main AS/400 inquiry program that sends request to MIDQUE data queue
CITALK RPG program that verifies city ZIP spelling
CITHLP RPG pro gra m that displays city help screen with pick list
CRTQ CL program that creates an output data queue based on the job number
DELQ CL program that deletes the queue created by CRTQ
GETLAT Sample RPG Program that converts City, Jurisdiction pairs or ZIP codes to Lat/longs
GETLATC CL program that creates output queue and starts GETLAT RPG
GETMILV Sample RPG Program performs point-to-point mileage lookups
GETMILVC CL program that creates output queue and starts GETMIL RPG
GETQNAME RPG Program that determines library and data queue name for sending requests
VALDR RPG Program that validates ZIP codes, place names, and street addresses; also
provides pick lists of ZIP codes, names and addresses when partial name, ZIP or
address is passed in RPG parameters.
MIDQUE Data queue that contains input mileage lookup records
MVSIINQC CL program that creates output data queue and starts MIINQ rpg
QUEUE CL program that writes to the MIDQUE request data queue
NWSEND External data structure for sending mileage requests
NWRESP External data structure for receiving mileage output
The program MSVIINQ contains two subroutines that can be used to
integrate miles with other transportation software. The subroutine SNDREQ
sends mileage requests to PC*MILER and the subroutine RSLT receives
mileage results from PC*MILER.