Executing DB2 Commands in Cobol

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Executing DB2 Commands in Cobol

Postby pjugali » Wed Apr 03, 2019 11:23 pm

I am working on requirement where in the first program reads sysidm.packages to find packages which are old (having more than 5 version) and create a file output containing FREE PACKAGE dsn commands.
This file is used in next step to free packages using utility IKJEFT1B. Currently the job is failing due to Lock. We cannot control this job (like if one of packages cannot be free'd the write that one to error file and continue with next one).
So we are thinking of using Cobol-db2 program which can exectute Free Package command. if the command fails we can write it to error file.

My question is can we use Free Package commands in cobol-db2 program. Can anyone share a sample program.
Posts: 1
Joined: Wed Apr 03, 2019 11:12 pm
Has thanked: 0 time
Been thanked: 0 time

Return to IBM Cobol


  • Related topics
    Last post