At 04:28 AM 5/13/1998 -0700, you wrote:
>     Hello,
>     A question on the AS/400 query facility. 
>     We need to execute SQL statements through a CL program. When we run 
>     the CL, it gives a journalling error. any idea how to accomplish this?
>     Also, we want to be able to execute multiple SQL statements from the 
>     same SQL source. Is this possible? How can we do this?

IF have the licensed SQL product
    RUNSQLSTM should run multiple statements.

    Query management queries can be created from source, one statement per
    source member.

    You can execute multiple QM queries from a thing called a QM
    procedure. (I don't think you can use substitution variables in CL,
    though.) The command to execute one of these is STRQMPRC.

Concerning commitment and journalling, you can use an 'isolation clause'. I
just tried it on a QMQRY and it works. The isolation clause takes the form
'with nc|ur|cs|rs|rr'. Maybe that'll help things. Check the SQL reference,
chapter 4, I think.


Vernon Hamberg
Systems Software Programmer
Old Republic National Title Insurance Company
400 Second Avenue South
Minneapolis, MN  55401-2499
(612) 371-1111 x480

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to
| To unsubscribe from this list send email to
| Questions should be directed to the list owner/operator:

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].