FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   TravelBuzz (https://www.flyertalk.com/forum/travelbuzz-176/)
-   -   Are PNR/Confirmation Codes Randomly Generated? (https://www.flyertalk.com/forum/travelbuzz/1858116-pnr-confirmation-codes-randomly-generated.html)

MatthewLAX Aug 1, 2017 5:55 pm

Are PNR/Confirmation Codes Randomly Generated?
 
I could have sworn I read an article on this a few years ago, but cannot find it. I'm just curious.

Say I book a ticket from AA and the reservation code is ABCDEF.

Do those letters mean anything? Is there any rhyme or reason to which letters the PNR is assigned, or is it totally random? Any link to geography or POS or type of ticket?

Is this true for both Sabre and Amadeus?

username Aug 1, 2017 7:29 pm

My understanding is that a lot of these systems are based on the same thing - IBM's TPF operating system where is is all about performing fast transactions.

Someone once told me that the locator actually maps/hashes to a disk location on the system. I don't know if that is still the case but I don't doubt it at least in the beginning of these systems. Just think these systems were developed 50+ years ago and memory, disk space, network and processing power were all expensive. So, they had to squeeze every byte and CPU cycle and wrote in assembly language (simple machine instructions).

I know on the UA SHARES system, if I make a few reservations in a row, the locators appear to be in some kind of sequential sorted order.

beckoa Aug 1, 2017 7:45 pm

Please follow the redirect to TravelBuzz.

~beckoa, co-moderator Information Desk

xooz Aug 1, 2017 7:51 pm

The PNR confirmation codes (Record Locators) are typically a hash algorithm that maps to a particular disk storage loaction (file address). The numbers are random, though there is typically a table of dirty words that is used to compare and exclude the use of "bad words" as record locators.

frobozzelectric Aug 1, 2017 8:09 pm

if they could allow us to assign our own PNR...
 
they probably would, and charge us for it.

keitherson Aug 2, 2017 12:36 am


Originally Posted by frobozzelectric (Post 28636514)
they probably would, and charge us for it.

many airlines have in house systems that assign their own PNR

Korean Air uses your phone number

and no, PNRs are not random. they are mostly random, but airlines have learnt to censor bad 3-6 letter words that they don't want in PNRs.

fbruno Aug 2, 2017 11:51 am

It depends per GDS.

Sabre PNR's are completely random (only letters though).
Amadeus and Galileo PNR's are in a certain sequence. Both use letters and numbers.

nrr Aug 5, 2017 6:11 pm

AA names itns, if I'm flying from JFK to ZRH, it would be JFK/ZRH, for one such trip my PNR was nearly a "permutation" of those letters, from my recollection something like ZHRKJA--I've flown this itn many times, but only that particular itn was even close, so mostly likely only a coincidence.

Kiwi Flyer Aug 5, 2017 8:22 pm

Some airlines go further with non-randomness. For example Air NZ PNRs always end in "H".

Not mentioned above but an airline shouldn't have more than one current ticket with the same PNR. In practice PNRs are not recycled for a short while in case of any post-travel issues.

username Aug 6, 2017 9:18 am

I really don't think locators are random. If you think about it, if it is random, then it can repeat, which we know does not happen. I don't think the algorithm would say generate something randomly and then check for duplication, etc.

I would guess in the best case, it would be "random within a set of rules".

Note also that some airlines share the same system and some GDS are also used by airlines for internal reservation processing (e.g. SABRE and AA).

SkyTeam777 Aug 19, 2017 4:56 pm

This is a fascinating discussion...while airlines may have algorithms to stop bad words, funny combinations still exist. Cool to know that PNRs can be repeated, but only after some time past the travel date.

How does Korean Air incorporate the phone number though?

DavidDTW Aug 19, 2017 10:15 pm


Originally Posted by SkyTeam777 (Post 28711364)
How does Korean Air incorporate the phone number though?

I'd like to hear an explanation of that too. I believe the KE system is Amadeus based, since the records I've seen always have airline record numbers that match that gds (if booked in Amadeus).

Steve_ZA Aug 22, 2017 12:26 pm

They certainly aren't completely random, if you make multiple bookings within a short space of time the first two characters are normally the same.


All times are GMT -6. The time now is 10:29 pm.


This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.