Search Results

Search: Posts Made By: sup
9,240
Posted By sup
Call Anonymous block from DB2
Hi,
I have a shell script and im trying to call a .sql file. The sql file has a simple Anonymous block.
The code is

shell script
db2 -tvf query.sql


the sql file contains
SET...
9,668
Posted By sup
Return db2 query value to shell script
Hi,
Im new to DB2.
I need to connect to DB2 from shell script and return the query output back to shell script variable.
this is my code
#!/bin/ksh
db_name=db
db_user=usr
db_pwd=pwd

db2 ...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy