You are on page 1of 22

Training Guide

Macros
Native Sabre

Document Edition 1.0 This documentation is the confidential and proprietary intellectual property of the Sabre Airline Solution® business. Any unauthorized use, reproduction, preparation of derivative works, performance or display of this document or software represented by this document, without the express written permission of Sabre Airline Solutions is strictly prohibited. Sabre Airline Solutions, the Sabre Airline Solutions logo, Sabre Holdings, the Sabre Holdings logo, Sabre, and SabreSonic are trademarks and/or service marks of an affiliate of Sabre Holdings Corp. All other trademarks, service marks and trade names are the property of their respective owners. © 2013 Sabre Inc. All rights reserved. 09_2013

Section Description By the end of the module.Document Revisions Date 09/04/13 New document. Sabre Airline Solutions Training Documentation 4 September 2013 iii Table of Contents Confidential and Proprietary Sabre Airline Solutions . and then run the Macro in Sabre View (SNTE). participants will be able to create and edit Macros using Notepad.

......................................................................................................................................................................................................................................................................................................... 9 Create Macros using Quick Keys ................................................ 19 Sabre Airline Solutions Training Documentation 4 September 2013 iv Table of Contents Confidential and Proprietary Sabre Airline Solutions ...................................................... 10 Modify Existing Macros ......................................... 5 Record Quick Keys ...............................................................Table of Contents Macros Quick Keys .............................................................. 15 Execute Macros in Sabre View ........................................................................................................................................................ 6 Create Macros in Notepad ......................................

Run Macros in Sabre View (SNTE). refer to Focus Sabre Airline Solutions Training Documentation 4 September 2013 iv Objectives Confidential and Proprietary Sabre Airline Solutions . No specific duty code required No specific keyword required No specific keyword required Duty code: Keyword: UAT Preparation Keyword: Participants must already be familiar with Native string entries and need the following applications installed on their computer: • • • Notepad or other source code editor Sabre View (SNTE) Microsoft Excel This module is for participants who are not developers and need an introductory lesson on Macros. Reference For more information. Create and edit Macros using Microsoft Excel and Notepad. participants will be able to: • • • EPR Understand what Macros are and what they can do.Objectives Item Objectives Description By the end of the module.

you can use Macros to create a hundreds of EPRs very quickly. For example. When creating Macros. Quick Keys A Quick Key contains a set of pre-recorded keystrokes that can be played in the Sabre system with a single key sequence. Quick Keys are ideal for storing any Sabre formats and procedures that you use on a frequent basis.Macros A Sabre View Macro is a document with string entries you can load into the Sabre View emulator. and even close the application. and the system will automatically remember all of the keystrokes as you type them. Sabre Airline Solutions Training Documentation 4 September 2013 5 Macros Confidential and Proprietary Sabre Airline Solutions . Note For more information on Quick Keys. Sabre View can receive Macro commands in two ways: either from a file or from other Windows applications. send commands to the Sabre system. refer to the Help menu in Sabre View. such as adding remarks to PNRs. type in the font ANSI so it is compatible with all applications in the Windows OS. Simply tell the Sabre system that you want to record a Quick Key. the Sabre system automatically performs the string entries from the Macro as if you were manually inputting the entries. You can then “play” those entries with a single key stroke. You can use Quick Keys to store a variety of Sabre functions. or the Macros will not process correctly. The Sabre View emulator currently supports several Macros that can change the appearance of the emulator. Once you execute a Macro. Note Note Use the correct Sabre format and remove all typos.

Record Quick Keys You can record a set of keystrokes and save them to a Quick Key. Sabre Airline Solutions Training Documentation 4 September 2013 6 Macros Confidential and Proprietary Sabre Airline Solutions . 3. a PNR is being created. You will see that Sabre emulator is recording at the bottom. In this example. Select Record Quick Key. Input a set of valid string entries. Select Keys. 2. To record a Quick Key: 1.

5. Note Do not delete the <WAIT> and <ENTER> designators in a Quick Key if you want it to work. These designators allow the system time to process a string entry. select Keys and then Stop Recording Quick Key. Sabre Airline Solutions Training Documentation 4 September 2013 7 Macros Confidential and Proprietary Sabre Airline Solutions . The Edit Quick Keys window displays. you can change what you recorded. so long as you use valid Sabre format. Once you’ve completed the entries. In the Recorded Sequence window.4.

Click Save. This means there is a recorded a sequence for Quick Key 3. You have now recorded a Quick Key. The Current Quick Key Sequence window will populate. Select OK.6. 7. Sabre Airline Solutions Training Documentation 4 September 2013 8 Macros Confidential and Proprietary Sabre Airline Solutions . Notice that a star (*) is next to QK3.

Note You should start each Macro with the Ignore command (“I”). You can use this application to create and edit Macros. you must have the designator WINCMD for every line of text. I have created a new Macro in Notepad. Remember. In the example.Create Macros in Notepad Notepad is a source code editor and supports several programming languages in the MS Windows environment. the commands must be valid and be input in a sequence that makes sense. To run string commands. Sabre Airline Solutions Training Documentation 4 September 2013 9 Macros Confidential and Proprietary Sabre Airline Solutions . I have created one PNR from start to finish. so you can clear your work area of any active PNRs. for the Macro to run properly. Below.

end ellipse Create Macros using Quick Keys You can use a recorded a Quick Key and use it in the Macro.When creating a Macro command. 2. In this example. To use a Quick Keys to make a Macro: 1. Select Keys. Do not leave any spaces between the lines or the Macro will not run. use this format. we’ll use the Quick Key we made earlier in the lesson. Select Edit Quick Keys…. WINCMD("6GUEST") Item WINCMD (“ 6GUEST ”) Description Designator for Windows Command Beginning quotation. Sabre Airline Solutions Training Documentation 4 September 2013 10 Macros Confidential and Proprietary Sabre Airline Solutions . beginning ellipse Valid Sabre string entry End quotation mark.

The Edit Quick Keys window appears.3. Select the Quick Key you want in the Macro from the Quick Key drop menu. 4. highlight all the text and select <Ctrl+Alt+C> to copy. 5. In the Recorded Sequence field. Sabre Airline Solutions Training Documentation 4 September 2013 11 Macros Confidential and Proprietary Sabre Airline Solutions .

Since the words <Wait> and <Enter> cannot function in the Macro.6. The Replace window appears. 7. Sabre Airline Solutions Training Documentation 4 September 2013 12 Macros Confidential and Proprietary Sabre Airline Solutions . Select the Replace option in the Edit menu. Open a new Notepad file and <Ctrl+Alt+V> to paste. Remove any spaces between entries. 8. you must remove them all. 9. Type the text you want deleted in the Find what field.

Ensure that each line has the WINCMD designator like the format below. 12. 11.10. Select Replace All. Sabre Airline Solutions Training Documentation 4 September 2013 13 Macros Confidential and Proprietary Sabre Airline Solutions . Continue deleting any words or spaces that are not a part of a valid string entry. 13. Leave the Replace with field blank.

MAC. change the file extension to . When saving a Macro. You can continue adding onto it at a later time. Select Save. 15.14. You have created a new Macro. Sabre Airline Solutions Training Documentation 4 September 2013 14 Macros Confidential and Proprietary Sabre Airline Solutions .

2. save a copy before making changes.Modify Existing Macros You can edit an existing Macro while in the Sabre Emulator. the Macro is booking several PNRs on a flight for training purposes. The Open window appears. Select Tools. Sabre Airline Solutions Training Documentation 4 September 2013 15 Macros Confidential and Proprietary Sabre Airline Solutions . Note When editing a Macro. Select Edit Macro…. For this example. 3. To modify an existing Macro: 1.

then Replace…. The Macro file displays. 5. Select the Macro you want to edit and select Open. Select Edit. Sabre Airline Solutions Training Documentation 4 September 2013 16 Macros Confidential and Proprietary Sabre Airline Solutions .4.

In this example.The Replace window appears. then put the new flight number you want in the Replace with field. 6. Sabre Airline Solutions Training Documentation 4 September 2013 17 Macros Confidential and Proprietary Sabre Airline Solutions . type the flight number that is in the Macro. 7. Notice that flight 500 has changed. Select Replace All. we will replace the flight number. In the Find what field.

Select Replace All. Sabre Airline Solutions Training Documentation 4 September 2013 18 Macros Confidential and Proprietary Sabre Airline Solutions . 11. Once you have finished modifying the macro. 9. Select File and save your work. 10. Do the same with the date and put the new date in the Replace with field. select Cancel to exit the Replace window.8.

To run a Macro in Sabre View: 1. The Macro may run for several minutes depending on file size. Note While the Macro is running. 4. you cannot do anything else on that computer or the Macro will stop. 3. Select Execute Macro…. Sabre Airline Solutions Training Documentation 4 September 2013 19 Macros Confidential and Proprietary Sabre Airline Solutions . Select the Macro you want to run. Select Tools. The Open window appears.Execute Macros in Sabre View You can run a Macro in Sabre View. 2.

The Macro will begin running. Select Open. Sabre Airline Solutions Training Documentation 4 September 2013 20 Macros Confidential and Proprietary Sabre Airline Solutions .5.

• • • Sabre Airline Solutions Training Documentation 4 September 2013 21 Macros Confidential and Proprietary Sabre Airline Solutions .