Get started Bring yourself up to speed with our introductory content.

Run multiple SQL statements

How can I run multiple SQL statements within interactive SQL? I have tried using the :, " ,;, but it will not recognize...


No. I'd suggest using the iSeries Navigator SQL Script window. In addition to being able to run multiple statements (separated with ;) and a graphical interface, the iSeries Navigator interface has additional features and functions not available with STRSQL. There are self-study tutorials that can be downloaded for free.

The RUNSQLSTM CL command would be another consideration for green-screen interfaces.

More on this topic

Visit the ITKnowledge Exchange and get answers to your DB2 questions fast.

Check out this Search400.com Featured Topic: Expert advice on DB2 

Search400.com's targeted search engine: Get relevant information on DB2/400. 

The Best Web Links: Tips, tutorials and more. 



Dig Deeper on iSeries SQL commands and statements