View Full Version : Using SQL statements in CL
ukpi1b
08-27-2002, 03:19 AM
Try COMMIT option as *NONE. Your code should look like RUNSQLSTM SRCFILE(xxxLIB/QCLSRC) SRCMBR(WHEDR) COMMIT(*NONE)
gary.shipp@s3t.co.uk
08-27-2002, 04:24 AM
I have been experimenting this morning with RUNSQLSTM in a CL pgm. I have created a source SQL statement then try to execute it from within the CL. The statement is trying to update a record in a file. However, I receive the following error message "Member WHEDR not journaled to journal *N. WHEDREXP in TESTLIB not valid for operation." If a journal is created over the file, the CL works. Why am I having to create a journal? Thanks in anticipation
gary.shipp@s3t.co.uk
08-27-2002, 04:24 AM
Sweet Will obviously have to consider issues with regards to individual cases as to whether it is appropriate to use commitment control or not. Thanks again
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.