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?
383 Views Asked by Sudarsan Rajagopalan At
1
There are 1 best solutions below
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
- How to create nested selects with sql?
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Best Practice for adding columns to a Table in Oracle database
- SQL FIFO STACK using two tables
- SQL Query - Order by String (which contains number and chars)
Related Questions in MAINFRAME
- difference between passing control to different program using return() and calling a program using xctl
- Getting output queue via FTP of a Mainframe (zOS)
- SELECT operator
- authentication between mainframe system and .net web service
- Register a copied application to registry
- I have a variable with PIC S9(4). Whether I use COMP or COMP-3 here?
- Converting a numeric to packed-decimal in Stored Procedure
- EBCDIC to ASCII not working Properly
- Send text file from Mainframe to IBM MQ
- Submit another JCL as a step from main JCL based on RC of the previous step {via Internal Reader}
- Accessing Mainframe datasets using FTP form Python
- Access a VSAM File from Rexx
- How to print decimal points in cobol?
- Procedure was expanded as instream procedure definition
- When a sql returns more than one value, what value will be stored in the host variable
Related Questions in JCL
- JCL IF statement on multiple lines
- Submit another JCL as a step from main JCL based on RC of the previous step {via Internal Reader}
- Procedure was expanded as instream procedure definition
- How to debug JCL
- How to convert IBM file to hexadecimal using DFSORT?
- creating a vsam file using jcl
- UNIDENTIFIED OPERATION FIELD Error in JCL
- Setting PATH in IEBGENER from file
- Generation Data Groups (GDG)
- How to do Delete/Define with using IDCAMS using batch JCL (z/VSE)
- Easytrieve A010 invalid file reference
- Lexing/Parsing "here" documents
- XML handling in REXX or JCL
- are //AMSDUMP DD and //SYSPRINT DD SYSOUT=A statements same?
- RECFM =FBA when i specifed RECFM=FB
Related Questions in REXX
- encryption/decryption by REXX
- Passing value with numeric format
- Access a VSAM File from Rexx
- REXX code used in SORT parm of JCL
- XML handling in REXX or JCL
- How do I convert this Java code to Rexx inorder to generate Luhn compatible credit cards?
- Stop Rexx Do Loop from Exiting
- Incrementing numbers in REXX
- Writing rexx output logically to a dataset using EXECIO?
- Calling particular functions in an external Rexx script
- How do I include a JCL PDS Library in a REXX Program
- How to debug Rexx code?
- Use Reginald interpreter in ooRexx
- Have a problem summing numbers in Rexx (Creating Luhn Algorithm)
- Is there a way to execute free Package statements using REXX?
Related Questions in DB2-ZOS
- Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object
- Is there a way to execute free Package statements using REXX?
- Db2 Z/OS Table Size
- DB2 functions returning error SQL CODE 4743?
- Db2 Multi Insert using LOOP
- Why are multiple numbers not workin in IN clause for DB2 z/OS
- Call Stored Procedure from DBeaver to DB2 not working
- How to extract date from a string column in db2 anything equivalent to patindex
- Why does db2 timestampdiff return error SYSFUN:07?
- how to get last accessed date of a table in db2 z o/s?
- Optional parameters in named query in EclipseLink
- Database locking in Spring Batch
- What is the definition of a Driving Cursor in SQL?
- How to fix JdbcOperations Batch Update consuming a lot of time?
- Generated column doesn't work for z/os while it is ok in LUW
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 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.