Beruflich Dokumente
Kultur Dokumente
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
Document Revisions
Section
Description By the end of the module, participants will be able to create and edit Macros using Notepad, and then run the Macro in Sabre View (SNTE).
iii
Table of Contents
Macros Quick Keys .......................................................................................................................................................... 5 Record Quick Keys .................................................................................................................................. 6 Create Macros in Notepad ................................................................................................................................... 9 Create Macros using Quick Keys ........................................................................................................... 10 Modify Existing Macros .......................................................................................................................... 15 Execute Macros in Sabre View .............................................................................................................. 19
iv
Objectives
Item Objectives
EPR
Understand what Macros are and what they can do. Create and edit Macros using Microsoft Excel and Notepad. Run Macros in Sabre View (SNTE). No specific duty code required No specific keyword required No specific keyword required
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, refer to Focus
iv
Macros
A Sabre View Macro is a document with string entries you can load into the Sabre View emulator. For example, you can use Macros to create a hundreds of EPRs very quickly. The Sabre View emulator currently supports several Macros that can change the appearance of the emulator, send commands to the Sabre system, and even close the application. Sabre View can receive Macro commands in two ways: either from a file or from other Windows applications. Once you execute a Macro, the Sabre system automatically performs the string entries from the Macro as if you were manually inputting the entries.
Note Note
Use the correct Sabre format and remove all typos, or the Macros will not process correctly. When creating Macros, type in the font ANSI so it is compatible with all applications in the Windows OS.
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. You can use Quick Keys to store a variety of Sabre functions, such as adding remarks to PNRs. Quick Keys are ideal for storing any Sabre formats and procedures that you use on a frequent basis. Simply tell the Sabre system that you want to record a Quick Key, and the system will automatically remember all of the keystrokes as you type them. You can then play those entries with a single key stroke.
Note
For more information on Quick Keys, refer to the Help menu in Sabre View.
3. Input a set of valid string entries. In this example, a PNR is being created.
4. Once youve completed the entries, select Keys and then Stop Recording Quick Key.
5. In the Recorded Sequence window, you can change what you recorded, so long as you use valid Sabre format.
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.
6. Click Save. The Current Quick Key Sequence window will populate. Notice that a star (*) is next to QK3. This means there is a recorded a sequence for Quick Key 3.
You should start each Macro with the Ignore command (I), so you can clear your work area of any active PNRs.
Below, I have created a new Macro in Notepad. To run string commands, you must have the designator WINCMD for every line of text. Remember, for the Macro to run properly, the commands must be valid and be input in a sequence that makes sense. In the example, I have created one PNR from start to finish.
When creating a Macro command, use this format. Do not leave any spaces between the lines or the Macro will not run.
WINCMD("6GUEST")
Item WINCMD ( 6GUEST ) Description Designator for Windows Command Beginning quotation, beginning ellipse Valid Sabre string entry End quotation mark, end ellipse
10
3. The Edit Quick Keys window appears. 4. Select the Quick Key you want in the Macro from the Quick Key drop menu.
5. In the Recorded Sequence field, highlight all the text and select <Ctrl+Alt+C> to copy.
11
7. Remove any spaces between entries. 8. Since the words <Wait> and <Enter> cannot function in the Macro, you must remove them all. Select the Replace option in the Edit menu. The Replace window appears. 9. Type the text you want deleted in the Find what field.
12
11. Select Replace All. 12. Continue deleting any words or spaces that are not a part of a valid string entry. 13. Ensure that each line has the WINCMD designator like the format below.
13
15. Select Save. You have created a new Macro. You can continue adding onto it at a later time.
14
15
16
The Replace window appears. In this example, we will replace the flight number.
6. In the Find what field, type the flight number that is in the Macro, then put the new flight number you want in the Replace with field. 7. Select Replace All. Notice that flight 500 has changed.
17
8. Do the same with the date and put the new date in the Replace with field.
9. Select Replace All. 10. Once you have finished modifying the macro, select Cancel to exit the Replace window. 11. Select File and save your work.
18
While the Macro is running, you cannot do anything else on that computer or the Macro will stop.
3. The Open window appears. 4. Select the Macro you want to run.
19
5. Select Open.
20
21