cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
empimpt -TESTMODE -vk  $DATA1 $MSTESTDB "a1view"
empimpt -TESTMODE -vk  $DATA1 $MSTESTDB "a0view" "ta" "tb"
empimpt -TESTMODE -evk $DATA1 $MSTESTDB "a4view" "a3view"
empimpt -TESTMODE -evk $DATA1 $MSTESTDB "a0view" "a1view" "a2view"
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 755 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

**  View: a1view  **

*** Error: table 'a2view' does not exist

*** import complete ***

**  Table: ta  **
    creating the table...
    inserting data in the table...
    setting lock levels on the table...

**  Table: tb  **
    creating the table...
    inserting data in the table...
    setting lock levels on the table...

**  View: a0view  **

*** Error: table 'a1view' does not exist

*** import complete ***

**  View: a4view  **
    creating the table...

**  View: a3view  **
    creating the table...

*** import complete ***

**  View: a2view  **
    creating the table...

**  View: a1view  **
    creating the table...

**  View: a0view  **
    creating the table...

*** import complete ***
* . tab_name                          tab_refer

ta
tb
a4view
a3view
a2view
a1view
a0view
* * . . . . tab_name                          attr_name

a0view                            a2
                                  b2
a1view                            a2
                                  b2
a2view                            a2
                                  b2
a3view                            a2
                                  b2
a4view                            a2
                                  b2
ta                                a1
                                  a2
tb                                b1
                                  b2
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > stdout.jp_euc <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

**  View: a1view  **

*** Error: ơ֥ 'a2view' ¸ߤޤ

*** ݡȽλ ***

**  Table: ta  **
    ơ֥档...
    ơ֥˥ǡ档...
    ơ֥˥å٥档...

**  Table: tb  **
    ơ֥档...
    ơ֥˥ǡ档...
    ơ֥˥å٥档...

**  View: a0view  **

*** Error: ơ֥ 'a1view' ¸ߤޤ

*** ݡȽλ ***

**  View: a4view  **
    ơ֥档...

**  View: a3view  **
    ơ֥档...

*** ݡȽλ ***

**  View: a2view  **
    ơ֥档...

**  View: a1view  **
    ơ֥档...

**  View: a0view  **
    ơ֥档...

*** ݡȽλ ***
* . tab_name                          tab_refer

ta
tb
a4view
a3view
a2view
a1view
a0view
* * . . . . tab_name                          attr_name

a0view                            a2
                                  b2
a1view                            a2
                                  b2
a2view                            a2
                                  b2
a3view                            a2
                                  b2
a4view                            a2
                                  b2
ta                                a1
                                  a2
tb                                b1
                                  b2
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout.jp_euc
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
Test import utility, multi level views ( command line arguments )
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
