SlideShare a Scribd company logo
1 of 2
//ESS_LOCALE English_UnitedStates.Latin1@Binary
/*
Purpose: Export data to a flat file
Written by: Deeksha Gupta
Modified: 27 Sat 2013
Notes:
*/
SET UPDATECALC OFF;
SET AGGMISSG ON;
SET EMPTYMEMBERSETS ON;
/* Set Message level */
SET MSG DETAIL;
/* Set Calculator Cache levels */
SET CACHE ALL;
SET CACHE HIGH;
/* Set up parallel calculations */
SET CALCPARALLEL 4;
/* Set dataexport properties */
SET DATAEXPORTOPTIONS
{
DataExportLevel LEVEL0; /* It specifies the amount of data to export. All
data, including consolidation and calculation results. */
DataExportDynamicCalc ON; /* Specifies whether a text data export excludes
dynamically calculated data.. No dynamically calculated values are included in
the report. */
DataExportNonExistingBlocks OFF;
DataExportDecimal 16; /*Specifies that the DATAEXPORT calculation command
will output numeric data with emphasis on precision (accuracy). By default,
Essbase supports 16 positions for numeric data, including decimal positions */
DataExportColFormat ON; /* Specifies if data is output in columnar format.
The data is output in columnar format. Do not use the DataExportColFormat option
in combination with the DataExportRelationalFile option which already assumes
columnar format for files destined as input files to relational databases. */
DataExportColHeader "Year Tot";
/********
Specifies the name of the dense dimension that is the column header (the
focus) around which other data is referenced in the export file.
Use the DataExportColHeader option only when you export data to a text file.
Specifies Year Tot as the page header in the export file. The Scenario
dimension contains three members: Scenario, Actual, and Budget. All Scenario
data is shown first, followed by all Actual data, then all Budget data.
********/
DataExportDimHeader ON;
/********
Use the DataExportDimHeader option to insert the optional header record at
the beginning of the export data file.
The header record contains all dimension names in the order as they are used
in the file.
Specifying this command always writes the data in "column format".
********/
DataExportRelationalFile OFF;
/********
Parameter values may be ON or OFF
ON: The output text export file is formatted for import to a relational
database.
Data is in column format; sparse member names are repeated. (The
DataExportColFormat option is ignored.)
The first record in the export file is data; no column heading or
dimension header is included, even if specified. (The DataExportColHeader and
DataExportDimHeader options are ignored.)
Missing and invalid data is skipped, resulting in consecutive delimiters
(commas) in the output. The optional "missing_char" parameter for DATAEXPORT is
ignored
OFF: Default. The data is not explicitly formatted for use as input to a
relational database.
********/
DataExportOverwriteFile ON; /* Manages whether an existing file with the same
name and location is replaced. */
DataExportDryRun OFF;
/********
Enables running the calculation script data export commands to see information
about the coded export, without exporting the data.
When the DataExportDryRun option value is ON, the following information is
written to the output file specified in the DATAEXPORT command:
Summary of data export settings
Info, Warning, and Error messages
Exact number of blocks to be exported
Estimated time, excluding I/O time.
********/
};
FIX ("Current Year" ,"LIGHTBOLT 365 A") /*,"Customer","Year Tot","Units","List
Price","Discount %","Labor/Unit","Matl/Unit","Overhead" )*/
DATAEXPORT "File" "," "C:deeshu_practisedataexport.txt" ;
ENDFIX;

More Related Content

What's hot

Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007
paulguerin
 

What's hot (20)

Etl2
Etl2Etl2
Etl2
 
Asp.Net The Data List Control
Asp.Net   The Data List ControlAsp.Net   The Data List Control
Asp.Net The Data List Control
 
Reading Fixed And Varying Data
Reading Fixed And Varying DataReading Fixed And Varying Data
Reading Fixed And Varying Data
 
Handling User Input and Processing Form Data
Handling User Input and Processing Form DataHandling User Input and Processing Form Data
Handling User Input and Processing Form Data
 
Vinoth sas presentation RANE industries
Vinoth sas presentation RANE industriesVinoth sas presentation RANE industries
Vinoth sas presentation RANE industries
 
Partitioning Tables and Indexing Them --- Article
Partitioning Tables and Indexing Them --- ArticlePartitioning Tables and Indexing Them --- Article
Partitioning Tables and Indexing Them --- Article
 
Sas Plots Graphs
Sas Plots GraphsSas Plots Graphs
Sas Plots Graphs
 
Les17[1] Writing Executable Statements
Les17[1] Writing Executable StatementsLes17[1] Writing Executable Statements
Les17[1] Writing Executable Statements
 
The Database Environment Chapter 8
The Database Environment Chapter 8The Database Environment Chapter 8
The Database Environment Chapter 8
 
Understanding sas data step processing.
Understanding sas data step processing.Understanding sas data step processing.
Understanding sas data step processing.
 
Top 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.comTop 10 sap abap faqs-www.bigclasses.com
Top 10 sap abap faqs-www.bigclasses.com
 
Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007Myth busters - performance tuning 101 2007
Myth busters - performance tuning 101 2007
 
Excel Database Function
Excel Database FunctionExcel Database Function
Excel Database Function
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 
Reconciliation Tool
Reconciliation ToolReconciliation Tool
Reconciliation Tool
 
Ms sql server tips 1 0
Ms sql server tips 1 0Ms sql server tips 1 0
Ms sql server tips 1 0
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connect
 
SAS Functions
SAS FunctionsSAS Functions
SAS Functions
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
 
Sql server lesson4_v2
Sql server lesson4_v2Sql server lesson4_v2
Sql server lesson4_v2
 

Similar to Data export

Bt export
Bt exportBt export
Bt export
Priya Dash
 
IDUG 2015 NA Data Movement Utilities final
IDUG 2015 NA Data Movement Utilities finalIDUG 2015 NA Data Movement Utilities final
IDUG 2015 NA Data Movement Utilities final
Jeyabarathi (JB) Chakrapani
 
StackInterface An interface for the ADT stack. Do not modif.pdf
StackInterface An interface for the ADT stack. Do not modif.pdfStackInterface An interface for the ADT stack. Do not modif.pdf
StackInterface An interface for the ADT stack. Do not modif.pdf
ARCHANASTOREKOTA
 
In this lab, we will write an application to store a deck of cards i.pdf
In this lab, we will write an application to store a deck of cards i.pdfIn this lab, we will write an application to store a deck of cards i.pdf
In this lab, we will write an application to store a deck of cards i.pdf
contact41
 
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdfRStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
Akshay Sahatpure
 
module data register for FS Machine.docx
module data register for FS Machine.docxmodule data register for FS Machine.docx
module data register for FS Machine.docx
mrunalgade25
 
Important tips related to postgres connection
Important tips related to postgres connectionImportant tips related to postgres connection
Important tips related to postgres connection
Neelima Kapoor
 
Important tips related to postgres connection
Important tips related to postgres connectionImportant tips related to postgres connection
Important tips related to postgres connection
Neelima Kapoor
 
Create a JAVA program that performs file IO and database interaction.pdf
Create a JAVA program that performs file IO and database interaction.pdfCreate a JAVA program that performs file IO and database interaction.pdf
Create a JAVA program that performs file IO and database interaction.pdf
malavshah9013
 
in c languageTo determine the maximum string length, we need to .pdf
in c languageTo determine the maximum string length, we need to .pdfin c languageTo determine the maximum string length, we need to .pdf
in c languageTo determine the maximum string length, we need to .pdf
stopgolook
 

Similar to Data export (20)

Bt export
Bt exportBt export
Bt export
 
Sas-training-in-mumbai
Sas-training-in-mumbaiSas-training-in-mumbai
Sas-training-in-mumbai
 
Sas classes in mumbai
Sas classes in mumbaiSas classes in mumbai
Sas classes in mumbai
 
External Tables - not just loading a csv file
External Tables - not just loading a csv fileExternal Tables - not just loading a csv file
External Tables - not just loading a csv file
 
IDUG 2015 NA Data Movement Utilities final
IDUG 2015 NA Data Movement Utilities finalIDUG 2015 NA Data Movement Utilities final
IDUG 2015 NA Data Movement Utilities final
 
Developing Information Schema Plugins
Developing Information Schema PluginsDeveloping Information Schema Plugins
Developing Information Schema Plugins
 
StackInterface An interface for the ADT stack. Do not modif.pdf
StackInterface An interface for the ADT stack. Do not modif.pdfStackInterface An interface for the ADT stack. Do not modif.pdf
StackInterface An interface for the ADT stack. Do not modif.pdf
 
Hive practice
Hive practiceHive practice
Hive practice
 
In this lab, we will write an application to store a deck of cards i.pdf
In this lab, we will write an application to store a deck of cards i.pdfIn this lab, we will write an application to store a deck of cards i.pdf
In this lab, we will write an application to store a deck of cards i.pdf
 
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdfRStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
RStudio_s_R_Markdown_documentation_Cheat_Cheet__1677232908.pdf
 
Pivotal greenplum external tables
Pivotal greenplum external tablesPivotal greenplum external tables
Pivotal greenplum external tables
 
Import option in Oracle Database : tip & trickđŸ§¶.pdf
Import option in Oracle Database : tip & trickđŸ§¶.pdfImport option in Oracle Database : tip & trickđŸ§¶.pdf
Import option in Oracle Database : tip & trickđŸ§¶.pdf
 
rmarkdown.pdf
rmarkdown.pdfrmarkdown.pdf
rmarkdown.pdf
 
module data register for FS Machine.docx
module data register for FS Machine.docxmodule data register for FS Machine.docx
module data register for FS Machine.docx
 
Important tips related to postgres connection
Important tips related to postgres connectionImportant tips related to postgres connection
Important tips related to postgres connection
 
Important tips related to postgres connection
Important tips related to postgres connectionImportant tips related to postgres connection
Important tips related to postgres connection
 
Create a JAVA program that performs file IO and database interaction.pdf
Create a JAVA program that performs file IO and database interaction.pdfCreate a JAVA program that performs file IO and database interaction.pdf
Create a JAVA program that performs file IO and database interaction.pdf
 
Utility Procedures in SAS
Utility Procedures in SASUtility Procedures in SAS
Utility Procedures in SAS
 
Multithreaded sockets c++11
Multithreaded sockets c++11Multithreaded sockets c++11
Multithreaded sockets c++11
 
in c languageTo determine the maximum string length, we need to .pdf
in c languageTo determine the maximum string length, we need to .pdfin c languageTo determine the maximum string length, we need to .pdf
in c languageTo determine the maximum string length, we need to .pdf
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Data export

  • 1. //ESS_LOCALE English_UnitedStates.Latin1@Binary /* Purpose: Export data to a flat file Written by: Deeksha Gupta Modified: 27 Sat 2013 Notes: */ SET UPDATECALC OFF; SET AGGMISSG ON; SET EMPTYMEMBERSETS ON; /* Set Message level */ SET MSG DETAIL; /* Set Calculator Cache levels */ SET CACHE ALL; SET CACHE HIGH; /* Set up parallel calculations */ SET CALCPARALLEL 4; /* Set dataexport properties */ SET DATAEXPORTOPTIONS { DataExportLevel LEVEL0; /* It specifies the amount of data to export. All data, including consolidation and calculation results. */ DataExportDynamicCalc ON; /* Specifies whether a text data export excludes dynamically calculated data.. No dynamically calculated values are included in the report. */ DataExportNonExistingBlocks OFF; DataExportDecimal 16; /*Specifies that the DATAEXPORT calculation command will output numeric data with emphasis on precision (accuracy). By default, Essbase supports 16 positions for numeric data, including decimal positions */ DataExportColFormat ON; /* Specifies if data is output in columnar format. The data is output in columnar format. Do not use the DataExportColFormat option in combination with the DataExportRelationalFile option which already assumes columnar format for files destined as input files to relational databases. */ DataExportColHeader "Year Tot"; /******** Specifies the name of the dense dimension that is the column header (the focus) around which other data is referenced in the export file. Use the DataExportColHeader option only when you export data to a text file. Specifies Year Tot as the page header in the export file. The Scenario dimension contains three members: Scenario, Actual, and Budget. All Scenario data is shown first, followed by all Actual data, then all Budget data. ********/ DataExportDimHeader ON; /******** Use the DataExportDimHeader option to insert the optional header record at the beginning of the export data file. The header record contains all dimension names in the order as they are used in the file. Specifying this command always writes the data in "column format". ********/ DataExportRelationalFile OFF; /******** Parameter values may be ON or OFF ON: The output text export file is formatted for import to a relational database. Data is in column format; sparse member names are repeated. (The DataExportColFormat option is ignored.) The first record in the export file is data; no column heading or
  • 2. dimension header is included, even if specified. (The DataExportColHeader and DataExportDimHeader options are ignored.) Missing and invalid data is skipped, resulting in consecutive delimiters (commas) in the output. The optional "missing_char" parameter for DATAEXPORT is ignored OFF: Default. The data is not explicitly formatted for use as input to a relational database. ********/ DataExportOverwriteFile ON; /* Manages whether an existing file with the same name and location is replaced. */ DataExportDryRun OFF; /******** Enables running the calculation script data export commands to see information about the coded export, without exporting the data. When the DataExportDryRun option value is ON, the following information is written to the output file specified in the DATAEXPORT command: Summary of data export settings Info, Warning, and Error messages Exact number of blocks to be exported Estimated time, excluding I/O time. ********/ }; FIX ("Current Year" ,"LIGHTBOLT 365 A") /*,"Customer","Year Tot","Units","List Price","Discount %","Labor/Unit","Matl/Unit","Overhead" )*/ DATAEXPORT "File" "," "C:deeshu_practisedataexport.txt" ; ENDFIX;