cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
: ' The standard input is not used on VMS and DOS, therefore the test must be '
: ' run as follows - '
: ' empimpt -TESTMODE $DATA1 $MSTESTDB "select table" foo view '

empimpt -TESTMODE - $MSTESTDB "select table" foo view < $DATA1
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 755 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
*** Import Error *** table 'foo' does not exist
Table: select table
View: view
* . . tab_name                          tab_index             tab_comment           tab_lock

select table                                            a test of complex na  t
                                                        mes and bulk
view                                                    a view defined over   n
                                                        select table
* . . . . tab_name                          attr_name                         attr_dtname                       attr_range            attr_comment

select table                      into                              integer                           >= '1'
                                  attr                              character
                                  table                             bulk
view                              into                              integer
                                  attr                              character
                                  table                             bulk
*   into  attr   table

     5  five   01 23 04
     5  five   9a bc de
*   into  attr   table

     5  five   01 23 04
     5  five   9a bc de
* 
*** Error: table 'mbuilder_application' does not exist
* 
*** Error: table 'mbuilder_compile' does not exist
* 
*** Error: table 'mbuilder_field' does not exist
* 
*** Error: table 'mbuilder_form' does not exist
* 
*** Error: table 'mbuilder_key' does not exist
* 
*** Error: table 'mbuilder_script' does not exist
* 
*** Error: table 'mbuilder_window' does not exist
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > stdout.jp_euc <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
*** Import Error *** ơ֥ 'foo' ¸ߤޤ
Table: select table
View: view
* . . tab_name                          tab_index             tab_comment           tab_lock

select table                                            a test of complex na  t
                                                        mes and bulk
view                                                    a view defined over   n
                                                        select table
* . . . . tab_name                          attr_name                         attr_dtname                       attr_range            attr_comment

select table                      into                              integer                           >= '1'
                                  attr                              character
                                  table                             bulk
view                              into                              integer
                                  attr                              character
                                  table                             bulk
*   into  attr   table

     5  five   01 23 04
     5  five   9a bc de
*   into  attr   table

     5  five   01 23 04
     5  five   9a bc de
* 
*** Error: ơ֥ 'mbuilder_application' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_compile' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_field' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_form' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_key' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_script' ¸ߤޤ
* 
*** Error: ơ֥ 'mbuilder_window' ¸ߤޤ
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout.jp_euc
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
test import utility, specific tables using stdin
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
