Hey,
I want to make a shell script which executes several sql stored in different files after each other.
I made following shell script:
dbaccess DBNAME SQLSCRIPTNAME1
dbaccess DBNAME SQLSCRIPTNAME2
and so on.
I get the error 329: Database not found or no system permissions.
I guess the problem is in my SQLSCRIPTNAME1It looks like: select * from TABLE;
I suppose first of all I have to do the logon. How do I do this? And where to do it: one time before calling the different SQLSCRIPTNAMEx or with every call?
I want to make a shell script which executes several sql stored in different files after each other.
I made following shell script:
dbaccess DBNAME SQLSCRIPTNAME1
dbaccess DBNAME SQLSCRIPTNAME2
and so on.
I get the error 329: Database not found or no system permissions.
I guess the problem is in my SQLSCRIPTNAME1It looks like: select * from TABLE;
I suppose first of all I have to do the logon. How do I do this? And where to do it: one time before calling the different SQLSCRIPTNAMEx or with every call?