Entering content frame

Syntax documentation Table Description Locate the document in the library structure

The syntax rules listed here are components of the table description in the commands for importing and exporting application data.

Note

If you want to use keywords as table or user names, you must place them in double quotation marks.

Syntax

<table_spec> ::= <table_name> <if_condition>

<table_name>

<valTABLE_NAME> | <valTABLE_SCHEMA>.<valTABLE_NAME>

<valTABLE_NAME>

Name of the table

Specify the table name in accordance with the SQL conventions. You can also define a user name as a prefix.

<valTABLE_SCHEMA>

Name of the schema

<if_condition>

IF <condition>

<condition>

Selecting Data Records

Examples

Example

IMPORT TABLE hotel.room 
  DATA INSTREAM FILE 'room.data'
  PAGE WITH 80% USAGE

The application data from the room.data file is to be imported into the ROOM table.

Example

EXPORT TABLE hotel.hotel
  DATA OUTSTREAM FILE 'hotel.data'
  LONGFILE INFO 'hotel_info.long'

The application data of HOTEL table is to be exported.

Example

IMPORT TABLE hotel.room
  
DATA INSTREAM FILE 'room.data'
    hno         1
    type        2
    free        3
    price       4

The application data from the room.data file is to be imported into the specified files of the ROOM table.

Example

IMPORT TABLE hotel.room
  IF POS 06-11 = 'double'
DATA INSTREAM FILE 'room.data'
  hno     01-05
  type    06-11
  free    12-15
  price   16-22

You only want to import those data records from the room.data data stream into the ROOM table in which double is specified as the room type.

Explanation

<table_spec>, <table_name>

You use the syntax rules table_spec or table_name to specify the name(s) of the target table(s) in commands for exporting or importing data.

You can use the syntax rule if_condition to define the selection criteria used to determine which records from the data stream are imported.

This syntax rule allows you to select data records when importing them from a data stream into a target table.

See also:

EXPORT TABLE Commands

IMPORT TABLE Commands

IMPORT COLUMN Commands

UPDATE COLUMNS Commands

 

Leaving content frame