David de Jongh is correct:
You are trying to pack a field that has 36^8 (2,821,109,907,456) possible
combinations into a field that has 60^4 (12,960,000) combinations.  You
will need a hashing algorithm.

Paul states:
There is No specific example, as this routine was used in many
installation to convert a VTAM NetName (LU Name) to a
4 Character Identifier.
You Could Have as Input:
CNI060201
TCP032AWE
T00004720
WECA10
</>
It is typically used by CICS Terminal AutoInstall to develop
CICS TERIDs.

Huh? Yes, LUNAME -> CICS TERM-ID, been there too.
Paul, didn't "we" exploit the LUNAME naming convention?
Like 'xxxyyynn', where
xxx -> 'Chicago', 'New York', ...
yyy -> dept / term-type / CU
nn  -> 01..99
where "we" had far fewer than 36^3 combinations and
all termid's starting with 'L' (Lxxx) where generated and
could be converted back to lunames...?

Andreas Geissbuehler

Reply via email to