I am able to write a REXX code that generates FREE PACKAGE statements. After generation I use that file in a JCL to execute the FREE PACKAGE statements. Is there a way to execute the FREE PACKAGE statements directly via rexx? I tried executing it like a normal query in REXX, but it throws -104 error. I believe I should not try executing it like a query. Any help would be appreciated.
Is there a way to execute free Package statements using REXX?
346 Views Asked by Sudarsan Rajagopalan At
1
There are 1 best solutions below
Related Questions in SQL
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
Related Questions in MAINFRAME
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
Related Questions in JCL
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
Related Questions in REXX
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
Related Questions in DB2-ZOS
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since it appears you have SQL working with REXX, you could use SYSPROC.ADMIN_COMMAND_DSN to perform BIND/REBIND/FREE operations. You could call this from REXX.
Here is an example CALL I used via Db2 Command Line Processor to rebind all the packages in a collection: CALL SYSPROC.ADMIN_COMMAND_DSN ('REBIND PACKAGE (DSNESPCS..())',?) #
So you would replace the 'REBIND PACKAGE...' with your BIND/REBIND/FREE commands.
There are administrative procedures delivered with Db2 for z/OS enable you to run commands, and many other administrative operations: https://www.ibm.com/support/knowledgecenter/en/SSEPEK_12.0.0/sqlref/src/tpc/db2z_suppliedstoredprocedures.html
It's mentioned above not running on the same LPAR could be a challenge. An alternate approach if you need to run commands remotely would be to create Db2 for z/OS Native Rest Services for Db2 stored procedures. So another viable option would be creating a rest service on SYSPROC.ADMIN_COMMAND_DSN, pass in the bind parameter, and execute BIND/REBIND/FREE via REST API. Then you could run the commands remotely using Java, Python, Node, etc.