HRS City/State Separation Utility

Easytrieve Plus

HRS uses a single field to store city and state information. Many functions require these to be separate fields.

From an Easytrieve Plus program, this module is called using an Easytrieve Plus include as follows:

%IS9055B HPARM

where HPARM is a 48 byte field subdefined as follows:

  1. Subroutine Return Code -- 1 byte/output
  2. Combined City/State Field -- 25 bytes/input
  3. City Field -- 20 bytes/output
  4. State Field -- 2 bytes/output

The routine is only useable in Easytrieve Plus or Cobol. The routine has an Easytrieve Plus include to quickly and easily define the variables needed to use the routine. It is called LIB9055B.

An example program might be:


...
...
%LIB9055B
...
...
HPARM2 = 'AUBURN, AL'
%IS9055B HPARM
DISPLAY '*' HPARM1 '*' HPARM31 '*' HPARM32 '*'
...
...

output would be:


*0*AUBURN *AL*

  • No JCL changes are required to invoke this procedure.
  • The City/State field must have a format of "city, state", where state is 2 bytes.