SEND TABLE stores information from the current or named report file as an SQL table.
Access mode:The syntax below is invalid when the access switch is set to OLQ.
Whatever data used to construct a report file can be stored as an SQL table.
Syntax:
►►─── SENd TABle ─┬─────┬─┬───────────┬─ sql-table-name ──────────────────────► └─ = ─┘ └─ schema. ─┘ ►─┬───────────────────────────────────────────────────────────────┬──────────► └─ REPort ─┬─────┬─ report-name ─┬────────────────────────────┬─┘ └─ = ─┘ └─ USEr ─┬─────┬─ user-name ─┘ └─ = ─┘ ►─┬──────────────────────────────────────┬───────────────────────────────────► └─ DICtname ─┬─────┬─ dictionary-name ─┘ └─ = ─┘ ►─┬─────────────────────────────────┬────────────────────────────────────────► └─ TYPe ─┬─────┬─┬─ CREate ─────┬─┘ └─ = ─┘ ├─┬─ APPend ─┬─┤ │ └─ ADD ────┘ │ └─ REPlace ────┘ ►─┬────────────────────────────────────┬─────────────────────────────────────► └─ AREa ─┬─────┬─ segment.area-name ─┘ └─ = ─┘ ►─┬────────────────────────────────────────────────────────────────────────┬─► │ ┌───────────────────────────────────────────────────┐ │ │ │ ┌──────────────┐ │ │ └─ INDices ─┬───┬─▼─ ( ─▼─ field-name ─┴─ ) ─┬──────────────────────┬─┴──┘ └ = ┘ │ ┌──────────────────┐ │ └─▼─┬─ ASCending ◄ ─┬┴─┘ ├─ DEScending ──┤ └─ NOT ALLowed ─┘ ►─┬───────────┬──────────────────────────────────────────────────────────────► ├─ SUMmary ─┤ └─ DETail ──┘ ►─┬────────────────────────────────────────────────────┬─────────────────────►◄ └─ COLumns ─┬─────┬─( ─┬─ MAXimum ─────────────┬─ ) ─┘ └─ = ─┘ │ ┌───────────────────┐ │ └─▼─ field-reference ─┴─┘
Parameters:
The name of the SQL table to be saved in CA IDMS/DB.
The name of the schema associated with the SQL table to be saved in CA IDMS/DB.
Identifies the saved report containing the columns that define the SQL table. Report-name names a report that was created with the SAVE REPORT command. If REPORT=report-name is not specified, the SQL table is defined by using columns from the current report.
Identifies the user who saved the named report. If USER=user-name is not specified, the report is retrieved from the current user's directory.
Specifies the name of the SQL catalog where the named SQL table is added.
Specifies whether the named SQL table is being created, added to, or replaced. Type can be:
Note: When either TYPE=APPEND/ADD or TYPE=REPLACE is specified, the columns in the current report must be the same as the columns in the existing table definition.
Names an alternative area to store the SQL table.
Defines characteristics of the index for the SQL table.
Specifies that summary report lines only be included in the ASF table.
Note: In addition to specifying SUMMARY, you can create a table which contains summary information only by specifying DISPLAY SUMMARY or by selecting SUMMARY ONLY from the Sort screen in menu mode. Any subsequent SEND TABLE will contain only the summary information.
Specifies that all detail report lines be included in the ASF table.
Specifies the report file columns included in the SQL table. Columns can be:
Considerations:
When an SQL table is created, the names of the field columns in the report file are assigned to the columns in the table definition.
If CA OLQ headers have been assigned to any report fields, these headers are retained as column names; both dynamic headers and CA OLQ headers retrieved from the data dictionary can be assigned to columns in an SQL table.
For multiple line headers, CA OLQ uses the field name for the internal name.
Examples:
Send Table
The SEND TABLE command can be used to instruct CA OLQ to replace all data previously associated with an SQL table with new data occurrences from the current report file. The following example replaces the EMP-HOSPITAL table with a single record:
send table=employee.hospital dictname=empdict type=replace OLQ 102017 TABLE PROCESSING HAS BEEN SUCCESSFULLY COMPLETED
Send Table Indices
This example presents the use of INDICES to define the characteristics of the index set for the SQL table:
send table=emp-salary indices=(emp-id-0415) not allowed (emp-last-name-0415, emp-first-name-0415)
|
Copyright © 2013 CA.
All rights reserved.
|
|