Hi,
just to let you know I have executed commands:
db2 "get routine into eg30a.sar from procedure test.eg30a"
I got an error:
SQL0443N Routine "SYSFUN.GET_ROUTINE_SAR" (specific name "GET_SAR4PARM") has returned an error SQLSTATE with diagnostic text "-204, 02000, TEST.EG30A". SQLSTATE=38000
But I can see I have package test.eg30a witch command:
db2inst1@lin9alca:~> db2 "list packages for schema test"
Code:
Bound Total Isolation
Package Schema Version by sections Valid Format level Blocking
---------- --------- ----------- --------- ------------- ------- -------- --------- --------
BO06A TEST TEST 6 Y 3 CS N
ED00A TEST TEST 1 Y 3 CS N
EG30A TEST TEST 2 Y 3 CS N
IN17A TEST TEST 34 Y 3 CS N
IN20A TEST TEST 32 Y 3 CS N
IS00A TEST TEST 7 Y 3 CS N
As I see "get routine" command does not move SQL package to file. This command has to be working something else.
More details on problem:
I was probably not compleatly clear with my question. I have IBM Visual Age Generator (software program to make programs). In test environment I can create Cobol code (and then complile it) and execute SQL compiling to DB2_Linux database to create SQL package (so using static SQL). So far so good. But know I need to create the SQL package to production environment, so I need to compile SQL package with Visual Age Generator again. It works fine, but it is CPU intensive and time consuming operation. So I would like to copy SQL package from test database and move it to production database with some db2 commands to awoid recompiling it again. This can be done on db2/vse (zSeries mainfraime database) with "unload" command to store SQL package from test database to disk and "load" command to move package to production database. How to do this in db2_Linux?
Thanks,
Grofaty