User`s guide

PC*MILER-AS400 User’s Guide 43
6.1 Technical Overview
The PC*MILER-AS400 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 AS400. Small CL programs
are used for the creation and removal of temporary data queues (output or
response queues). 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 Client Access Express. The interactive software on the
AS400 allows multiple users to look up point-to-point mileage and routes
for up to thirty stop-off points. The Windows server application creates a
data queue on the AS400 at startup called MIDQUE. The server
application waits for mileage requests and processes them when received.
While the server application is waiting for work to do, the PC can be used
for other tasks such as PC*MILER graphics or RUMBA terminal
emulation.
AS400 Programs
Files Description
MIINQ Main AS400 inquiry program that sends request to MIDQUE data queue
CITALK RPG program that verifies city ZIP spelling
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
GETMIL Sample RPG Program performs point-to-point mileage lookups
GETMILC 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
MIINQC CL program that creates output data queue and starts MIINQ rpg
QUEUE CL program that writes to the MIDQUE request data queue
MISEND External data structure for sending mileage requests
MIRESP External data structure for receiving mileage output
DRAW External data structure for sending graphics requests to PC
MISEND2 External data structure with field mappings for Borders and Use Ferry Distance
TLSEND2 External data structure with field mappings for Borders and Use Ferry Distance