28 macros host

22
Training Guide Macros Native Sabre

Upload: jjprietoj

Post on 22-Oct-2015

248 views

Category:

Documents


8 download

TRANSCRIPT

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

Sabre Airline Solutions Training Documentation Table of Contents 4 September 2013 iii Confidential and Proprietary Sabre Airline Solutions

Document Revisions

Date Section Description

09/04/13 New document. 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).

Sabre Airline Solutions Training Documentation Table of Contents 4 September 2013 iv Confidential and Proprietary Sabre Airline Solutions

Table of Contents

M a c r o s

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

Sabre Airline Solutions Training Documentation Objectives 4 September 2013 iv Confidential and Proprietary Sabre Airline Solutions

Objectives

Item Description

Objectives By the end of the module, participants will be able to:

• Understand what Macros are and what they can do.

• Create and edit Macros using Microsoft Excel and Notepad.

• Run Macros in Sabre View (SNTE).

EPR Duty code: No specific duty code required

Keyword: No specific keyword required

UAT Keyword: No specific keyword required

Preparation 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

Sabre Airline Solutions Training Documentation Macros 4 September 2013 5 Confidential and Proprietary Sabre Airline Solutions

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 Use the correct Sabre format and remove all typos, or the Macros will not process correctly.

Note 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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 6 Confidential and Proprietary Sabre Airline Solutions

Record Quick Keys

You can record a set of keystrokes and save them to a Quick Key.

To record a Quick Key:

1. Select Keys.

2. Select Record Quick Key.

You will see that Sabre emulator is recording at the bottom.

3. Input a set of valid string entries. In this example, a PNR is being created.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 7 Confidential and Proprietary Sabre Airline Solutions

4. Once you’ve completed the entries, select Keys and then Stop Recording Quick Key.

The Edit Quick Keys window displays.

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 8 Confidential and Proprietary Sabre Airline Solutions

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.

7. Select OK.

You have now recorded a Quick Key.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 9 Confidential and Proprietary Sabre Airline Solutions

Create Macros in Notepad

Notepad is a source code editor and supports several programming languages in the MS Windows

environment. You can use this application to create and edit Macros.

Note 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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 10 Confidential and Proprietary Sabre Airline Solutions

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 Description

WINCMD Designator for Windows Command

(“ Beginning quotation, beginning ellipse

6GUEST Valid Sabre string entry

”) End quotation mark, end ellipse

Create Macros using Quick Keys

You can use a recorded a Quick Key and use it in the Macro. In this example, we’ll use the Quick

Key we made earlier in the lesson.

To use a Quick Keys to make a Macro:

1. Select Keys.

2. Select Edit Quick Keys….

Sabre Airline Solutions Training Documentation Macros 4 September 2013 11 Confidential and Proprietary Sabre Airline Solutions

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 12 Confidential and Proprietary Sabre Airline Solutions

6. Open a new Notepad file and <Ctrl+Alt+V> to paste.

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 13 Confidential and Proprietary Sabre Airline Solutions

10. Leave the Replace with field blank.

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 14 Confidential and Proprietary Sabre Airline Solutions

14. When saving a Macro, change the file extension to .MAC.

15. Select Save.

You have created a new Macro. You can continue adding onto it at a later time.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 15 Confidential and Proprietary Sabre Airline Solutions

Modify Existing Macros

You can edit an existing Macro while in the Sabre Emulator. For this example, the Macro is booking

several PNRs on a flight for training purposes.

Note When editing a Macro, save a copy before making changes.

To modify an existing Macro:

1. Select Tools.

2. Select Edit Macro….

3. The Open window appears.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 16 Confidential and Proprietary Sabre Airline Solutions

4. Select the Macro you want to edit and select Open.

The Macro file displays.

5. Select Edit, then Replace….

Sabre Airline Solutions Training Documentation Macros 4 September 2013 17 Confidential and Proprietary Sabre Airline Solutions

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 18 Confidential and Proprietary Sabre Airline Solutions

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.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 19 Confidential and Proprietary Sabre Airline Solutions

Execute Macros in Sabre View

You can run a Macro in Sabre View. The Macro may run for several minutes depending on file size.

Note While the Macro is running, you cannot do anything else on that computer or the Macro will

stop.

To run a Macro in Sabre View:

1. Select Tools.

2. Select Execute Macro….

3. The Open window appears.

4. Select the Macro you want to run.

Sabre Airline Solutions Training Documentation Macros 4 September 2013 20 Confidential and Proprietary Sabre Airline Solutions

5. Select Open.

The Macro will begin running.

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

• • •