Professional Documents
Culture Documents
Document Distribution
Company Customer
Qualex Consulting Hyatt
Services
Historical Documentation
Versi Description Author Appro Date
on ver
1 Summary Reports CN 2-18-
Sharad 2017
Page 1 of 32
Hyatt Global Performance Reports
CONTENTS
Page 2 of 32
Hyatt Global Performance Reports
Contents
OVERVIEW............................................................................................................................ 3
AUTOMATION OF GLOBAL PERFORMANCE REPORTS....................................................4
Page 3 of 32
Hyatt Global Performance Reports
OVERVIEW
These are the four Global Performance Reports at Hyatt identified for the automation
process in the short-term.
Monthly Reports
Monthly XXX Baseline Global Performance Report 2A thru mm-dd as of mm-
dd.xlsx
Monthly XXX Baseline Global Performance Report 2B thru mm-dd as of mm-
dd.xlsx
Weekly Reports
Week xx Baseline Global Performance Report 2A by Stays thru mm-dd as of
mm-dd.xlsx
Week xx Baseline Global Performance Report 2B by Nights thru mm-dd as of
mm-dd.xlsx
Executive Monthly Summary
Monthly XXX Baseline Global Performance Executive Summary thru mm-dd as
of mm-dd.xlsx
Insight Reports*
Monthly Insight - Marketing Risk Segment
Monthly Insight - Properties GP Metrics
Monthly Insight - Hotel
Monthly Insight Proximity Report (DEV)
Monthly Insight Brand Affinity Report (DEV)
Monthly Insight - Promo Response (DEV)
Page 4 of 32
Hyatt Global Performance Reports
Page 5 of 32
Hyatt Global Performance Reports
Page 6 of 32
Hyatt Global Performance Reports
An Excel VBA based interface has been developed for execution of the reporting
process in a sequence for each of the Weekly/Monthly and Executive Monthly
processes. This file has one drop down and three buttons like the Screenshot Below.
The Analyst selects which reporting period he needs the reports for in the drop
down below. The value selected in the drop down populates the Dates for Year 2017
and 2016 and the mm-dd value that is used to rename the file output file.
The Analyst then clicks on each of the buttons below in a sequence and validates if
the files have been created in each step and proceeds to the next.
This button starts the process of copying of data from files that
Copy Paste for SAS produces to pre-formatted Global performance reports. It
3
XXXXX Reports employs excel VBA logic to copy data from specified cells on one
spreadsheet to the specified cells on the final reports
Page 7 of 32
Hyatt Global Performance Reports
The Reporting End Date for the year 2016 and 2017 are written to the appropriate
text files in the toad_input_dates folder.
1. For e.g. to pull Monthly data ending February, one would have to enter
20160209 in the 2016ExecMonthlyDataPull.txt for the process.
2. For e.g. the value of mm-dd i.e 02-28 in the screenshot above is used to
rename the final report out of the process.
Figure 4: Excel report name uses the mm-dd passed on the interface
Page 8 of 32
Hyatt Global Performance Reports
Following are the reporting components that are used in the Global Performance
Reports. The key components are the SQL scripts, Automation scripts, SAS code and
excel reporting templates. There are Excel VBA macro Workbooks that drive the
entire process for the reporting.
The script files for the Global Performance Summary Reports consists of these files.
SAS Scripts
A total of three SAS Enterprise Guide projects that use multiple SAS code files
to execute the Global Performance Summary and Detail Reports.
Page 9 of 32
Hyatt Global Performance Reports
Output of the TOAD automation scripts (i.e. Inputs to the SAS Process): Total 6
csv files
The Excel VBA reports below provides the interface of executing all the Global
Performance Summary Reports.
There are pre-formatted Excel reports for all the Global Performance Summary
Reports.
Page 10 of 32
Hyatt Global Performance Reports
The Root location for the Global Performance Reporting Automation process is at
Rootlocation\Automation.
The table below gives the folder name and Short description of the contents intended for
files under it
Folder
Name Short Description
batch_scripts Folder location for All batch files
documentatio Folder location for All Documentation regarding
n the process
excel_templa Folder location for All Excel Templates for
tes Reports
Folder location for All VBA related excel
Reports_VBA templates
sas_egp_proj
ects Folder location for All SAS Enterprise Projects
Folder location for All output from the SAS
sas_output Processes
sas_scripts Folder location for All SAS code
toad_input_d
ates Folder location for All TOAD related input files
toad_logs Folder location for All TOAD logs
toad_output Folder location for All TOAD exported data files
toad_sql Folder location for All TOAD SQL files
toad_tas_scri Folder location for All TOAD related automation
pts scripts
Folder location for All TOAD related temporary
toad_temp files
Page 11 of 32
Hyatt Global Performance Reports
Page 12 of 32
Hyatt Global Performance Reports
2. The Analyst selects the Month from the drop down for which he would like to
execute the Executive Summary Report.
3. The Excel VBA will populate the Reporting End Date values and other
information that are needed for the process.
4. The Analyst clicks on the Execute Data Extraction Process button to kick
start the TOAD data pulls from the database. On the backend, the Excel VBA
script writes the reporting end to .txt files (screenshot below) and then calls
the TOAD Automation scripts in batch mode and pulls the required data and
dumps them in the toad_output folder.
5. The Excel VBA templates open the .txt files as below in to edit the Reporting
End Date as required. This date is used in determining the end date for the
data reporting period in the sql queries used to querying the database for the
data pulls.
Page 13 of 32
Hyatt Global Performance Reports
6. For e.g. to pull Monthly data ending February, one would have to enter
20160209 in the 2016ExecMonthlyDataPull.txt for the process.
Figure 6: 2016ExecMonthlyDataPull.txt
7. The data below gives the suggested format of the ending dates for each of the
Files.
Date Month
20160
131 January
20160 Februar
229 y
20160
331 March
20160
430 April
20160
531 May
20160
2016ExecMonthlyDa
630 June
taPull.txt
20160
731 July
20160
831 August
20160 Septem
930 ber
20161
031 October
20161 Novem
130 ber
20161 Decem
231 ber
Date Month
2017ExecMonthlyDa 20170
taPull.txt 131 January
20170 Februar
Page 14 of 32
Hyatt Global Performance Reports
229 y
20170
331 March
20170
430 April
20170
531 May
20170
630 June
20170
731 July
20170
831 August
20170 Septem
930 ber
20171
031 October
20171 Novem
130 ber
20171 Decem
231 ber
8. There will be a black execution window that indicates which script is currently
executing.
9. Once the Process is done, the analyst would need to skim through the logs
(*.log files) generated in the toad_logs folder to look for any possible warnings
or errors in the process.
Page 15 of 32
Hyatt Global Performance Reports
10. One has to make sure that the Script Log does not have any errors and
shows a record count greater than 1.
11. On Executing the Automation scripts, they create the CSV reports per
script on the users reporting folder.
12. The Analyst needs to quickly open them and validate the .csv files for
data validation.
13. The Next step is Click on the Execute Exec Monthly Report Process
button to execute the SAS Enterprise Guide code in batch mode.
14. This opens a windows explorer leading to the sas_scripts folder
automatically. The Analyst needs to double click on the
Report2A2B_Exec_Monthly_Summary.bat file to execute the SAS EG code.
15. Alternatively to clicking on the bat file above, the Analyst can open the
SAS Enterprise Guide Project Report2A2B_Exec_Monthly_Summary.egp and
Right Click in the Process Flow Diagram and hit the menu item Run Process
Flow. Alternatively, one can run each of the sub processes one by one in a
sequence.
Page 16 of 32
Hyatt Global Performance Reports
16. The SAS Process creates the two excel files below as output.
17. The Next step is Click on the Excel Copy Paste for Exec Monthly
Process to execute the process of copying and pasting the values of SAS
script output to preformatted Template files.
18. This process takes a copy of the template files from the excel_templates
folder and puts it into sas_output folder for the copy/paste and rename
process.
19. Heres the list of files from which the data values are copy / pasted.
20. The Excel VBA follows logic to copy data from specified cells on Exec
Monthly Nights.xlsx to the specified cells on Monthly Executive Summary thru
mm-dd as of mm-dd.xlsx of the Total 2B columns.
21. Validate that you have copied and pasted the correct values to the
correct position in the target excel file row wise and column wise.
Page 17 of 32
Hyatt Global Performance Reports
Page 18 of 32
Hyatt Global Performance Reports
2. The Analyst selects the Week from the drop down for which he would like to
execute the Executive Summary Report.
3. The Excel VBA will populate the Reporting End Date values and other
information that are needed for the process.
4. The Analyst clicks on the Execute Data Extraction Process button to kick
start the TOAD data pulls from the database. On the backend, the Excel VBA
script writes the reporting end to .txt files and then calls the TOAD Automation
scripts in batch mode and pulls the required data and dumps them in the
toad_output folder.
5. The Excel VBA templates open the .txt files as below in to edit the Reporting
End Date as required. This date is used in determining the end date for the
data reporting period in the sql queries used to querying the database for the
data pulls.
6. For e.g. to pull Monthly data ending February, one would have to enter
20170128 for Week 04 in the 2017WeeklyDataPull.txt.
Page 19 of 32
Hyatt Global Performance Reports
7. The data below gives the suggested format of the ending dates for each of the
years 2016 and 2017 in those Files.
2017WeeklyDat 2016WeeklyDat
Week aPull.txt aPull.txt
Week 01 20170107 20160107
Week 02 20170114 20160114
Week 03 20170121 20160121
Week 04 20170128 20160128
Week 05 20170204 20160204
Week 06 20170211 20160211
Week 07 20170218 20160218
Week 08 20170225 20160225
Week 09 20170304 20160304
Week 10 20170311 20160311
Week 11 20170318 20160318
Week 12 20170325 20160325
Week 13 20170401 20160401
Week 14 20170408 20160408
Week 15 20170415 20160415
Week 16 20170422 20160422
Week 17 20170429 20160429
Week 18 20170506 20160506
Week 19 20170513 20160513
Week 20 20170520 20160520
Week 21 20170527 20160527
Week 22 20170603 20160603
Week 23 20170610 20160610
Week 24 20170617 20160617
Week 25 20170624 20160624
Week 26 20170701 20160701
Week 27 20170708 20160708
Week 28 20170715 20160715
Week 29 20170722 20160722
Week 30 20170729 20160729
Week 31 20170805 20160805
Week 32 20170812 20160812
Week 33 20170819 20160819
Week 34 20170826 20160826
Week 35 20170902 20160902
Week 36 20170909 20160909
Week 37 20170916 20160916
Page 20 of 32
Hyatt Global Performance Reports
8. There will be a black execution window that indicates which script is currently
executing.
9. Once the Process is done, the analyst would need to skim through the logs
(*.log files) generated in the toad_logs folder to look for any possible warnings
or errors in the process.
10. One has to make sure that the Script Log does not have any errors and
shows a record count greater than 1.
Page 21 of 32
Hyatt Global Performance Reports
11. On Executing the Automation scripts, they create these CSV reports per
script on the users reporting folder.
12. The Analyst needs to quickly open them and validate the .csv files for
data validation.
13. The Next step is Click on the Execute Weekly Process to execute the
SAS Enterprise Guide code in batch mode.
14. This opens a windows explorer leading to the sas_scripts folder
automatically. The Analyst needs to double click on the
Report2A2B_Weekly.bat file to execute the SAS EG code.
15. Alternatively to executing the bat file, the Analyst can open the SAS
Enterprise Guide Project Report2A2B_Weekly.egp and Right Click in the
Process Flow Diagram and hit the menu item Run Process Flow.
Alternatively, one can run each of the sub processes one by one in a
sequence.
16. The SAS Process creates the two excel files below as output.
Page 22 of 32
Hyatt Global Performance Reports
17. The Next step is Click on the Copy Paste for Weekly Process to
execute the process of copying and pasting the values of SAS script output to
preformatted Template files.
18. This process takes a copy of the template files from the excel_templates
folder and puts it into sas_output folder for the copy/paste and rename the
final report file.
19. Heres the list of files from which the data values are copy / pasted.
20. The Excel VBA follows logic to copy data from specified cells on
Report2B Nights Weekly.xlsx to the specified cells on Report 2B Weekly thru
mm-dd as of mm-dd.xlsx of the Total 2B columns.
21. Validate that you have copied and pasted the correct values to the
correct position in the target excel file row wise and column wise.
For e.g. the Weekly report Report 2A Weekly thru 01-28 as of 03-08.xlsx
Page 23 of 32
Hyatt Global Performance Reports
Figure 11: The Weekly report Report 2A Weekly thru 01-28 as of 03-08.xlsx
Page 24 of 32
Hyatt Global Performance Reports
2. The Analyst selects the Month from the drop down for which he would like to
execute the Executive Summary Report.
3. The Excel VBA will populate the Reporting End Date values and other
information that are needed for the process.
4. The Analyst clicks on the Execute Data Extraction Process button to kick
start the TOAD data pulls from the database. On the backend, the Excel VBA
script writes the reporting end to .txt files and then calls the TOAD Automation
scripts in batch mode and pulls the required data and dumps them in the
toad_output folder.
5. The Excel VBA templates open the .txt files as below in to edit the Reporting
End Date as required. This date is used in determining the end date for the
data reporting period in the sql queries used to querying the database for the
data pulls.
Page 25 of 32
Hyatt Global Performance Reports
6. For e.g. to pull Monthly data ending February, one would have to enter
20160209 in the 2016ExecMonthlyDataPull.txt.
7. The data below gives the suggested format of the ending dates for each of the
Files.
Date Month
201601
31 January
201602 Februar
29 y
201603
31 March
201604
30 April
201605
31 May
201606
30 June
2016MonthlyDataP
201607
ull.txt
31 July
201608
31 August
201609 Septem
30 ber
201610
31 October
201611 Novemb
30 er
201612 Decemb
31 er
Date Month
201701
2017MonthlyDataP 31 January
ull.txt 201702 Februar
29 y
201703
31 March
201704
30 April
201705
31 May
201706
30 June
201707 July
Page 26 of 32
Hyatt Global Performance Reports
31
201708
31 August
201709 Septem
30 ber
201710
31 October
201711 Novemb
30 er
201712 Decemb
31 er
Page 27 of 32
Hyatt Global Performance Reports
11. One has to make sure that the Script Log does not have any errors and
shows a record count greater than 1.
12. On Executing the Automation scripts, they create these CSV reports per
script on the users reporting folder.
13. The Analyst needs to quickly open them and validate the .csv files for
data validation.
14. The Next step is Click on the Execute Monthly Process to execute the
SAS Enterprise Guide code in batch mode.
15. This opens a windows explorer leading to the sas_scripts folder
automatically. The Analyst needs to double click on the
Report2A2B_Monthly.bat file to execute the SAS EG code.
Page 28 of 32
Hyatt Global Performance Reports
16. Alternatively, the Analyst can open the SAS Enterprise Guide Project
Report2A2B_Monthly.egp and Right Click in the Process Flow Diagram and
hit the menu item Run Process Flow. Alternatively, one can run each of the
sub processes one by one in a sequence.
17. The SAS Process creates the two excel files below as output.
Page 29 of 32
Hyatt Global Performance Reports
18. The Next step is Click on the Excel Copy Paste for Monthly Process to
execute the process of copying and pasting the values of SAS script output to
preformatted Template files.
19. This process takes a copy of the template files from the excel_templates
folder and puts it into sas_output folder for the copy/paste and rename
process.
20. Heres the list of files from which the data values are copy / pasted.
21. The Excel VBA follows logic to copy data from specified cells on Report
2B Nights Monthly.xlsx to the specified cells on Report 2B Monthly thru mm-dd
as of mm-dd.xlsx of the Total 2B columns.
22. Validate that you have copied and pasted the correct values to the
correct position in the target excel file row wise and column wise.
Page 30 of 32
Hyatt Global Performance Reports
INSIGHT REPORTS
HOTEL REPORT
Page 31 of 32
Hyatt Global Performance Reports
REPORTING SUPPORT
Al Cordoba
Email: al.cordoba@qlx.com
Ankit Agrawal
Email: ankit.agrawal@qlx.com
C N Sharad
Email: sharad@qlx.com
Page 32 of 32