A Passenger Name Record (PNR) is generated through a complex digital handshake between an airline's Reservation System and a Global Distribution System (GDS) like Amadeus or Sabre. When you book a flight, the system collects five mandatory data points (the "PRINT" rule): Phone number, Received from (who made the booking), Itinerary, Name of passenger, and Ticketing info. Once these are entered, the system's algorithm generates a unique 6-character alphanumeric code (the record locator). This code is not just a random string; it is indexed within the airline’s massive database so that multiple service providers—hotels, car rentals, and other airlines—can access the same "folder" of your travel details. The PNR serves as the digital backbone of your trip, storing everything from passport details to meal preferences, and it remains active in the system's history even after the flight has been completed for security and record-keeping purposes.