server routine
Posted: Sun Aug 13, 2017 11:08 am
Hi all,
I want to create a routine to connect to DB using.
I get the following error when creating a routine, but it works when creating as a JCL.
Compiling: Source = 'DSU_BP/DSU.TableCount', Object = 'DSU_BP.O/DSU.TableCount'
*************************************************?*
0012 Command="db2 connect to ": DBNAME : " user " : ID : " using " : PASSWORD
^
':' unexpected, Was expecting: ';', End of Line
1 Errors detected, No Object Code Produced.
The syntax for connecting to DB works when compiling in JCL. Could any one please help me out using the right syntax.
I want to create a routine to connect to DB using.
I get the following error when creating a routine, but it works when creating as a JCL.
Compiling: Source = 'DSU_BP/DSU.TableCount', Object = 'DSU_BP.O/DSU.TableCount'
*************************************************?*
0012 Command="db2 connect to ": DBNAME : " user " : ID : " using " : PASSWORD
^
':' unexpected, Was expecting: ';', End of Line
1 Errors detected, No Object Code Produced.
The syntax for connecting to DB works when compiling in JCL. Could any one please help me out using the right syntax.