Running Multiple SQL statements through JCL

5 pts.
Tags:
DB2 SQL
JCL
SQL error messages
SQL Server
SQL statements
I need to run multiple sql statements seperatd by ';'. I want the execution to continue for all the SQL statements even if any of the SQLs throws out error. Is it possible?
ASKED: January 7, 2011  11:05 PM
UPDATED: January 13, 2011  9:08 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

DB2 for z/OS has several options to exec SQL statements via batch. Take a look at DSNTEP2 and DSNTEP4. They are sample programs that come with DB2. Check them out in the APSG manual. Also DSNTIAUL with the SQL option.

I also suggest you check with your DBA or other staff in house – there may be rules to be followed.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Try Running DSNTEP2 and DSNTEP4. You didn't say anything about the mainframe OS or DB2 version/release. But the above link gives all of the documentation needed, including multiple examples. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following