In this section: |
When the server accesses a data source, it needs information on how to interpret the data stored there. For each data source the server will access, you create a synonym that describes the structure of the data source and the server mapping of the SQL Server Analysis Services data types.
How to: Reference: |
Synonyms define unique names (or aliases) for each Analytical Engine cube that is accessible from a server. Synonyms are useful because they hide location information and the identity of the underlying data source from client applications. They also provide support for extended metadata features of the server such as virtual fields and additional security mechanisms.
Using synonyms allows an object to be moved or renamed while allowing client applications to continue functioning without modification. The only modification required is a redefinition of the synonym on the server. The result of creating a synonym is a Master File and Access File.
For details on how to create a synonym through the Web Console, see the Server Configuration and Operation manual for your platform.
To create a synonym, you must have previously configured the adapter. You can create a synonym from the Applications or Adapters pages of the Web Console.
The Applications page opens.
The Select adapter to configure or Select connection to create synonym pane opens.
The first of a series of synonym creation panes opens.
The Status pane indicates that the synonym was created successfully.
The synonym is created and added under the specified application directory.
Note:
The following list describes the parameters for which you will need to supply values, and related tasks you will need to complete in order to create a synonym for the adapter. These options may appear on multiple panes. To advance from pane to pane, click the buttons provided, ending with the Create Synonym button, which generates the synonym based on your entries.
If you wish to filter your selections, click this check box and enter a catalog and/or cube name in the input boxes.
You can enter a full catalog or cube name or use a wildcard character (%) as needed, at the beginning and/or end of the string. For example, enter: ABC% to select catalogs or cubes that begin with the letters ABC; %ABC to select catalogs or cubes that end with the letters ABC; %ABC% to catalogs or cubes that contain the letters ABC at the beginning, middle, or end.
Select whether you want mixed-case or uppercase field names. Mixed-case is the default value.
Select an application directory. The default value is baseapp.
If you have tables with identical table names, assign a prefix or a suffix to distinguish them. For example, if you have identically named human resources and payroll tables, assign the prefix HR to distinguish the synonyms for the human resources tables. Note that the resulting synonym name cannot exceed 64 characters.
If all tables and views have unique names, leave the prefix and suffix fields blank.
To specify that this synonym should overwrite any earlier synonym with the same fully qualified name, select the Overwrite existing synonyms check box.
Note: The connected user must have operating system write privileges in order to recreate a synonym.
To include all hierarchies, not just user-defined hierarchies, in the synonym, select the Include System-Enabled Hierarchies check box.
Select how you want parent/child hierarchies represented in the synonym:
Select the cubes for which you wish to create synonyms:
This column displays the name that will be assigned to each synonym. To assign a different name, replace the displayed value.
To generate a synonym for the Sales cube in the FoodMart 2000 Data Warehouse, enter the following information on the Create Synonym panes of the Web Console or the Data Management Console:
A status window displays the that the synonym was created successfully.
Generated Master File
FILENAME=Sales, SUFFIX=SSAS , $
SEGMENT=SALES, SEGTYPE=S0, $
$ MEASURES FOR CUBE Sales FIELDNAME=Unit_Sales, ALIAS='Unit Sales', USAGE=D18.2, ACTUAL=D8, MISSING=ON, TITLE='Unit Sales', REFERENCE=SUM.Unit_Sales, PROPERTY=MEASURE, $
FIELDNAME=Store_Cost, ALIAS='Store Cost', USAGE=D18.2, ACTUAL=D8, MISSING=ON, TITLE='Store Cost', REFERENCE=SUM.Store_Cost, PROPERTY=MEASURE, $
FIELDNAME=Store_Sales, ALIAS='Store Sales', USAGE=D18.2, ACTUAL=D8, MISSING=ON, TITLE='Store Sales', REFERENCE=SUM.Store_Sales, PROPERTY=MEASURE, $
FIELDNAME=Sales_Count, ALIAS='Sales Count', USAGE=I11, ACTUAL=I4, MISSING=ON, TITLE='Sales Count', REFERENCE=CNT.Sales_Count, PROPERTY=MEASURE, $
FIELDNAME=Store_Sales_Net, ALIAS='Store Sales Net', USAGE=D18.2, ACTUAL=D8, MISSING=ON, TITLE='Store Sales Net', REFERENCE=SUM.Store_Sales_Net, PROPERTY=MEASURE, $
FIELDNAME=Profit, ALIAS=Profit, USAGE=D19.11, ACTUAL=D8, MISSING=ON, TITLE='Profit', REFERENCE='(SUM.Store_Sales - SUM.Store_Cost)', PROPERTY=CALCULATED MEASURE, $
FIELDNAME=Sales_Average, ALIAS='Sales Average', USAGE=D19.16, ACTUAL=D8, MISSING=ON, TITLE='Sales Average', REFERENCE='(SUM.Store_Sales / CNT.Sales_Count)', PROPERTY=CALCULATED MEASURE, $
FIELDNAME=YTD_Store_Sales, ALIAS='YTD Store Sales', USAGE=D19.11, ACTUAL=D8, MISSING=ON, TITLE='YTD Store Sales', REFERENCE= , PROPERTY=MEASURE, $
FIELDNAME=QTD_Store_Sales, ALIAS='QTD Store Sales', USAGE=D2.0, ACTUAL=D8, MISSING=ON, TITLE='QTD Store Sales', REFERENCE= , PROPERTY=MEASURE, $
FIELDNAME=Prev__Period_Store_Sales, ALIAS='Prev. Period Store Sales', USAGE=D2.0, ACTUAL=D8, MISSING=ON, TITLE='Prev. Period Store Sales', REFERENCE= , PROPERTY=MEASURE, $
DIMENSION=[Customers], CAPTION='Customers', $ HIERARCHY=[Customers], CAPTION='Customers', HRY_DIMENSION=[Customers], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Country, ALIAS=Country, USAGE=A6, ACTUAL=A6, TITLE='Country', WITHIN='*[Customers]', PROPERTY=CAPTION, $
FIELDNAME=State_Province, ALIAS='State Province', USAGE=A9, ACTUAL=A9, TITLE='State Province', WITHIN='Country', PROPERTY=CAPTION, $
FIELDNAME=City, ALIAS=City, USAGE=A14, ACTUAL=A14, TITLE='City', WITHIN='State_Province', PROPERTY=CAPTION, $
FIELDNAME=Name, ALIAS=Name, USAGE=A26, ACTUAL=A26, TITLE='Name', WITHIN='City', PROPERTY=CAPTION, $
$ LEVEL [Customers].[Name] PROPERTIES FIELDNAME=Date_Accnt_Opened, ALIAS='Date Accnt Opened', USAGE=A10, ACTUAL=A10, TITLE='Date Accnt Opened', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Education, ALIAS=Education, USAGE=A19, ACTUAL=A19, TITLE='Education', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Gender, ALIAS=Gender, USAGE=A1, ACTUAL=A1, TITLE='Gender', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Marital_Status, ALIAS='Marital Status', USAGE=A1, ACTUAL=A1, TITLE='Marital Status', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Member_Card, ALIAS='Member Card', USAGE=A6, ACTUAL=A6, TITLE='Member Card', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Yearly_Income, ALIAS='Yearly Income', USAGE=A13, ACTUAL=A13, TITLE='Yearly Income', REFERENCE=Name, PROPERTY=ATTRIBUTE, $
DIMENSION=[Education Level], CAPTION='Education Level', $ HIERARCHY=[Education Level], CAPTION='Education Level', HRY_DIMENSION=[Education Level], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Education_Level1, ALIAS='Education Level', USAGE=A19, ACTUAL=A19, TITLE='Education Level', WITHIN='*[Education Level]', PROPERTY=CAPTION, $
DIMENSION=[Gender], CAPTION='Gender', $ HIERARCHY=[Gender], CAPTION='Gender', HRY_DIMENSION=[Gender], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Gender11, ALIAS=Gender, USAGE=A1, ACTUAL=A1, TITLE='Gender', WITHIN='*[Gender]', PROPERTY=CAPTION, $
DIMENSION=[Marital Status], CAPTION='Marital Status', $ HIERARCHY=[Marital Status], CAPTION='Marital Status', HRY_DIMENSION=[Marital Status], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Marital_Status11, ALIAS='Marital Status', USAGE=A1, ACTUAL=A1, TITLE='Marital Status', WITHIN='*[Marital Status]', PROPERTY=CAPTION, $
DIMENSION=[Product], CAPTION='Product', $ HIERARCHY=[Product], CAPTION='Product', HRY_DIMENSION=[Product], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Product_Family, ALIAS='Product Family', USAGE=A14, ACTUAL=A14, TITLE='Product Family', WITHIN='*[Product]', PROPERTY=CAPTION, $
FIELDNAME=Product_Department, ALIAS='Product Department', USAGE=A19, ACTUAL=A19, TITLE='Product Department', WITHIN='Product_Family', PROPERTY=CAPTION, $
FIELDNAME=Product_Category, ALIAS='Product Category', USAGE=A20, ACTUAL=A20, TITLE='Product Category', WITHIN='Product_Department', PROPERTY=CAPTION, $
FIELDNAME=Product_Subcategory, ALIAS='Product Subcategory', USAGE=A18, ACTUAL=A18, TITLE='Product Subcategory', WITHIN='Product_Category', PROPERTY=CAPTION, $
FIELDNAME=Brand_Name, ALIAS='Brand Name', USAGE=A13, ACTUAL=A13, TITLE='Brand Name', WITHIN='Product_Subcategory', PROPERTY=CAPTION, $
FIELDNAME=Product_Name, ALIAS='Product Name', USAGE=A43, ACTUAL=A43, TITLE='Product Name', WITHIN='Brand_Name', PROPERTY=CAPTION, $
$ LEVEL [Product].[Product Name] PROPERTIES FIELDNAME=Cases_Per_Pallet, ALIAS='Cases Per Pallet', USAGE=I2, ACTUAL=I4, TITLE='Cases Per Pallet', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Gross_Weight, ALIAS='Gross Weight', USAGE=D6.2, ACTUAL=D8, TITLE='Gross Weight', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Low_Fat, ALIAS='Low Fat', USAGE=I2, ACTUAL=I4, TITLE='Low Fat', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Net_Weight, ALIAS='Net Weight', USAGE=D6.2, ACTUAL=D8, TITLE='Net Weight', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Recyclable_Package, ALIAS='Recyclable Package', USAGE=I2, ACTUAL=I4, TITLE='Recyclable Package', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Shelf_Depth, ALIAS='Shelf Depth', USAGE=D6.2, ACTUAL=D8, TITLE='Shelf Depth', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Shelf_Height, ALIAS='Shelf Height', USAGE=D6.2, ACTUAL=D8, TITLE='Shelf Height', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Shelf_Width, ALIAS='Shelf Width', USAGE=D6.2, ACTUAL=D8, TITLE='Shelf Width', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Sku, ALIAS=Sku, USAGE=D12, ACTUAL=D8, TITLE='Sku', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Srp, ALIAS=Srp, USAGE=D5.2, ACTUAL=D8, TITLE='Srp', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Units_Per_Case, ALIAS='Units Per Case', USAGE=I2, ACTUAL=I4, TITLE='Units Per Case', REFERENCE=Product_Name, PROPERTY=ATTRIBUTE, $
DIMENSION=[Promotion Media], CAPTION='Promotion Media', $ HIERARCHY=[Promotion Media], CAPTION='Promotion Media', HRY_DIMENSION=[Promotion Media], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Media_Type, ALIAS='Media Type', USAGE=A23, ACTUAL=A23, TITLE='Media Type', WITHIN='*[Promotion Media]', PROPERTY=CAPTION, $
DIMENSION=[Promotions], CAPTION='Promotions', $ HIERARCHY=[Promotions], CAPTION='Promotions', HRY_DIMENSION=[Promotions], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Promotion_Name, ALIAS='Promotion Name', USAGE=A23, ACTUAL=A23, TITLE='Promotion Name', WITHIN='*[Promotions]', PROPERTY=CAPTION, $
DIMENSION=[Store], CAPTION='Store', $ HIERARCHY=[Store],CAPTION='Store',HRY_DIMENSION=[Store],HRY_STRUCTURE=STANDARD,$ HIERARCHY=[Store Size in SQFT], CAPTION='Store Size in SQFT', HRY_DIMENSION=[Store], HRY_STRUCTURE=STANDARD, $ HIERARCHY=[Store Type], CAPTION='Store Type', HRY_DIMENSION=[Store], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Store_Country, ALIAS='Store Country', USAGE=A6, ACTUAL=A6, TITLE='Store Country', WITHIN='*[Store]', PROPERTY=CAPTION, $
FIELDNAME=Store_State, ALIAS='Store State', USAGE=A9, ACTUAL=A9, TITLE='Store State', WITHIN='Store_Country', PROPERTY=CAPTION, $
FIELDNAME=Store_City, ALIAS='Store City', USAGE=A13, ACTUAL=A13, TITLE='Store City', WITHIN='Store_State', PROPERTY=CAPTION, $
FIELDNAME=Store_Name, ALIAS='Store Name', USAGE=A8, ACTUAL=A8, TITLE='Store Name', WITHIN='Store_City', PROPERTY=CAPTION, $
$ LEVEL [Store].[Store Name] PROPERTIES FIELDNAME=Store_Manager, ALIAS='Store Manager', USAGE=A8, ACTUAL=A8, TITLE='Store Manager', REFERENCE=Store_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Store_Sqft, ALIAS='Store Sqft', USAGE=A5, ACTUAL=A5, TITLE='Store Sqft', REFERENCE=Store_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Store_Type, ALIAS='Store Type', USAGE=A19, ACTUAL=A19, TITLE='Store Type', REFERENCE=Store_Name, PROPERTY=ATTRIBUTE, $
FIELDNAME=Store_Sqft1, ALIAS='Store Sqft', USAGE=A5, ACTUAL=A5, TITLE='Store Sqft', WITHIN='*[Store Size in SQFT]', PROPERTY=CAPTION, $
FIELDNAME=Store_Type11, ALIAS='Store Type', USAGE=A19, ACTUAL=A19, TITLE='Store Type', WITHIN='*[Store Type]', PROPERTY=CAPTION, $
DIMENSION=[Time], CAPTION='Time', $ HIERARCHY=[Time], CAPTION='Time', HRY_DIMENSION=[Time], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Year, ALIAS=Year, USAGE=I4, ACTUAL=I4, TITLE='Year', WITHIN='*[Time]', PROPERTY=CAPTION, $
FIELDNAME=Quarter, ALIAS=Quarter, USAGE=A2, ACTUAL=A2, TITLE='Quarter', WITHIN='Year', PROPERTY=CAPTION, $
FIELDNAME=Month, ALIAS=Month, USAGE=I2, ACTUAL=I4, TITLE='Month', WITHIN='Quarter', PROPERTY=CAPTION, $
DIMENSION=[Yearly Income], CAPTION='Yearly Income', $ HIERARCHY=[Yearly Income], CAPTION='Yearly Income', HRY_DIMENSION=[Yearly Income], HRY_STRUCTURE=STANDARD, $
FIELDNAME=Yearly_Income11, ALIAS='Yearly Income', USAGE=A13, ACTUAL=A13, TITLE='Yearly Income', WITHIN='*[Yearly Income]', PROPERTY=CAPTION, $
Note: Master Files should not be altered. Manipulating the Master File causes incorrect query results.
The Measures dimension can contain calculated and non-calculated members. Calculated members in the Measures dimension will contain a Reference defining the calculated member and a Property. Some properties are mandatory while others may be user-defined.
Generated Access File
SEGNAME=SALES, CUBENAME=Sales, SCHEMA=, CATALOG=FoodMart 2000, DATASOURCE=TSCQ02, $
Once you have created a synonym, you can right-click the synonym name in the Adapter navigation pane of either the Web Console or the Data Management Console to access the following options.
Option |
Description |
---|---|
Edit |
Opens the Master File for viewing and editing using a graphical interface. If an Access file is used it will be also available. |
Edit as Text |
Enables you to view and manually edit the Master File synonym. Note: To update the synonym, it is strongly recommended that you use the graphical interface provided by the Edit option, rather than manually editing the Master File. |
Edit Access File as Text |
Enables you to view and manually edit the Access File synonym. Note: This option is available only when an Access File is created as part of the synonym. |
Sample Data |
Retrieves up to 20 rows from the associated data source. |
Data Profiling |
Data Profiling provides the data characteristics for synonym columns. Alphanumeric columns provide the count of distinct values, total count, maximum, minimum, average length, and number of nulls. Numeric columns provide the count of distinct values, total count, maximum, minimum, average value, and number of nulls. |
Refresh Synonym (if applicable) |
Regenerates the synonym. Use this option if the underlying object has been altered. |
Data Management |
Followed by these options, if applicable: Recreate DBMS Table. Recreates the data source table. You are asked to confirm this selection before the table is regenerated. (Note that the table will be dropped and recreated. During the process, data may be lost.) Delete All Data. Deletes all existing data. You are asked to confirm this selection before the data is deleted. Insert Sample Data. Inserts specified number of sample records, populating all fields with counter values. |
Impact Analysis |
Generates reports on procedures, synonyms, and columns that provide information on the flows/stored procedures available on a particular server, and the synonyms and columns they use. These reports enable you to evaluate changes before they are made by showing which components will be affected. See the Server Administration for UNIX, Windows, OpenVMS, IBMÂ i, and z/OS manual for details about Impact Analysis Reports. |
Copy |
Copies the synonym to clipboard. |
Delete |
Deletes the synonym. You are asked to confirm this selection before the synonym is deleted. |
Cut |
Deletes the synonym and places it in clipboard. |
Properties |
Displays the properties of the synonym, including physical location, last modified date, and description. |
Keyword |
Description |
---|---|
SEGNAME |
Value must be identical to the SEGNAME value in the Master File. |
CUBENAME |
Name of the OLAP cube. |
SCHEMA |
Schema that describes the cube. |
DATASOURCE |
SQL Server Analysis Services name. |
CATALOG= |
Name of the data source (catalog) the OLAP cube is using. |
In this section: |
Microsoft Analysis Server (2005 and 2008) natively stores data (such as, member names and captions) in time dimensions in alphanumeric format without applying any particular standard, and it allows you to create members with names consisting of any combination of components such as year, quarter, and month, with any delimiter and in many languages. In a sorted report, if such data is sorted alphabetically, the sequence does not make business sense. To ensure adequate sorting, aggregation, and reporting on date fields, WebFOCUS converts the alphanumeric dates into standard WebFOCUS date format using a conversion pattern that you can specify in the Master File attribute called DATEPATTERN.
Each element in the pattern is either a constant character which must appear in the actual input or a variable that represents a date component. You must edit the USAGE attribute in the Master File so that it accounts for the date elements in the date pattern. The maximum length of the DATEPATTERN string is 64 characters.
The valid date components (variables) are year, quarter, month, day, and day of week. In the date pattern, variables are enclosed in square brackets (these brackets are not part of the input or output. Note that if the data contains brackets, you must use an escape character in the date pattern to distinguish the brackets in the data from the brackets used for enclosing variables).
Specifies a 4-digit year.
Specifies a 2-digit year.
Specifies a zero-suppressed 2-digit year (For example, 8 for 2008).
Specifies a blank-padded 2-digit year.
Specifies a 2-digit month number.
Specifies a zero-suppressed month number.
Specifies a blank-padded month number.
Specifies a 3-character month name in uppercase.
Specifies a 3-character month name in lowercase.
Specifies a 3-character month name in mixed-case.
Specifies a full month name in uppercase.
Specifies a full month name in lowercase.
Specifies a full month name in mixed-case.
Specifies a 2-digit day of the month.
Specifies a zero-suppressed day of the month.
Specifies a blank-padded day of the month.
Specifies a 3-digit day of the year.
Specifies a zero-suppressed day of the year.
Specifies a blank-padded day of the year.
Specifies a 1-digit day of the week.
Specifies a 3-character day name, uppercase.
Specifies a 3-character day name, lowercase.
Specifies a 3-character day name, mixed-case.
Specifies a full day name, uppercase.
Specifies a full day name, lowercase.
Specifies a full day name, mixed-case.
For the day of the week, the WEEKFIRST setting defines which day is day 1.
Between the variables, you can insert any constant values.
If you want to insert a character that would normally be interpreted as part of a variable, use the backslash character as an escape character. For example:
For a single quotation mark, use two consecutive single quotation marks ('').
If the date in the data source is of the form CY 2001 Q1, the DATEPATTERN attribute is:
DATEPATTERN = 'CY [YYYY] Q[Q]'
If the date in the data source is of the form Jan 31, 01, the DATEPATTERN attribute is:
DATEPATTERN = '[Mon] [DD], [YY]'
If the date in the data source is of the form APR-06, the DATEPATTERN attribute is:
DATEPATTERN = '[MON]-[YY]'
If the date in the data source is of the form APR - 06, the DATEPATTERN attribute is:
DATEPATTERN = '[MON] - [YY]'
If the date in the data source is of the form APR '06, the DATEPATTERN attribute is:
DATEPATTERN = '[MON] ''[YY]'
If the date in the data source is of the form APR [06], the DATEPATTERN attribute is:
DATEPATTERN = '[MON] \[[YY]\]' (or '[MON] \[[YY]]'
Note the right square bracket does not have to be escaped.
The following request against the Adventure Works cube sorts by the Month field:
TABLE FILE ADVENTURE_WORKS SUM Internet_Sales_Amount BY Month WHERE Calendar_Year EQ 'CY 2001' OR 'CY 2004' ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON END
The default synonym has the following declaration for the Month field:
FIELDNAME=Month, ALIAS=Month, USAGE=A14, ACTUAL=A14, TITLE='Month', WITHIN='Calendar_Quarter', PROPERTY=CAPTION, $
The output shows that the months also have a year component and are sorted in alphabetical order, not month order:
Now, make the following changes to the declaration for the Month field:
FIELDNAME=Month, ALIAS=Month, USAGE=MtrYY, ACTUAL=A14, TITLE='Month', WITHIN='Calendar_Quarter', PROPERTY=CAPTION, DATEPATTERN = '[Month] [YYYY]',$
Re-running the request with these changes produces the following output in which the months are sorted correctly:
The following request against the Adventure Works cube sorts by the Calendar_Quarter field:
TABLE FILE ADVENTURE_WORKS SUM Internet_Sales_Amount BY Calendar_Quarter WHERE Calendar_Year EQ 'CY 2001' OR 'CY 2004' ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON END
The default synonym has the following declaration for the Calendar_Quarter field:
FIELDNAME=Calendar_Quarter, ALIAS='Calendar Quarter', USAGE=A10, ACTUAL=A10, TITLE='Calendar Quarter', WITHIN='Calendar_Semester', PROPERTY=CAPTION,$
The output shows that the quarters are sorted in alphabetical order, not quarter and year order:
Now, make the following changes to the declaration for the Calendar_Quarter field:
FIELDNAME=Calendar_Quarter, ALIAS='Calendar Quarter', USAGE=QYY, ACTUAL=A10, TITLE='Calendar Quarter', WITHIN='Calendar_Semester', PROPERTY=CAPTION, DATEPATTERN = 'Q[Q] CY [YYYY]',$
Re-running the request with these changes produces the following output in which the quarters are sorted correctly. Note that the displayed value uses the WebFOCUS date format, not the original alphanumeric date format:
iWay Software |