× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It looks like the default commit levels are not the same for STRSQL and RUNSQL. When I specified "No commit" in RUNSQL, everything worked.

-----Message d'origine-----
De : MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Justin Taylor
Envoyé : 29 janvier 2018 08:43
À : Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Objet : RE: RUNSQL behavior difference with STRSQL

Are the commit levels the same?



-----Original Message-----
From: Denis Robitaille [mailto:denis_robitaille@xxxxxxxxxxxx]
Sent: Friday, January 26, 2018 4:16 PM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: RUNSQL behavior difference with STRSQL

Hello all,

First, we are at OS 7.2

I am trying to create a program that will list all the libraries with a certain pattern to their name. to develop and test the correct SQL statement, I used the STRSQL command.

Here is the command I want to run in a program:

create table qtemp/gei0192t as
(select schema_name from sysschemas where schema_name like 'CDTA___16' or schema_name like 'RHUSAV___') with data

This works just fine when I am in STRSQL.

So I created a CL program into which I call this same SQL statement with RUNSQL.

When I run the CL program, I get the error CPF4328 Member GEI0192T not journaled to journal *N.

Does anybody knows why I get this error when the SQL statement is in a CL program and works just fine if I run it interactively?

Thanks

[cid:image001.jpg@01D1F7D9.2487F9B0]<http://www.cascades.com/_home>

Denis Robitaille
Chef de service TI - Solution d'entreprise Infrastructure et opérations

CASCADES CENTRE DES TECHNOLOGIES
412 Marie Victorin
Kingsey falls(Québec) Canada J0A 1B0
Tél : 819 363 6100 Poste :52130
Cell : 819 352 9362




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.