|
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of TomConstellation
Deskevich
Sent: Monday, November 13, 2017 12:01 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Do you see anything wrong with this code for RECORD_LOCK_INFO
Ran it fresh this morning and still do not get any records.
Here is all the SQL.
/FREE
EXEC sql
DECLARE C1 cursor for
SELECT
JOB_NAME AS jobname
FROM QSYS2.RECORD_LOCK_INFO
WHERE SYS_TNAME= :File
AND RRN= :Record#;
EXEC sql
OPEN C1;
EXEC sql
FETCH C1 INTO :jobname;
dow sqlcod<>100 and sqlcod>=0;
Exsr loadrtn;
EXEC sql
FETCH C1 INTO :jobname;
enddo;
Exfmt schctl1;
If *in12=*off;
exsr killjobs;
endif;
EXEC sql
CLOSE C1;
*inlr=*on;
/END-FREE
Tom Deskevich
******************
Tom Deskevich
Programmer/Analyst
P: 814-472-6066 x134
F: 814-472-5019
E: TDeskevich@xxxxxxxxxxxxxxxxxx
172 Gateway Road PO Box 568
Ebensburg, Pennsylvania
15931
www.harrislocalgov.com
This message has been sent on behalf
of a company that is part of the Harris Operating Group of
Software Inc. These companies are listed at the following link:clicking
http://subscribe.harriscomputer.com
Unsubscribe Option:
If you do not wish to receive any future email, please unsubscribe by
on the following link:addressed. This
http://subscribe.harriscomputer.com
This message is
intended exclusively for the individual or entity to which it is
communication may contain information that is proprietary, privilegedor
confidential or otherwise legally exempt from disclosure. If you arenot the
named addressee, you are not authorized to read, print, retain, copyor
disseminate this message or any part of it. If you have received thismessage
in error, please notify the sender immediately by e-mail and deleteall copies
of the message.(RPG400-L)
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx Tosubscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-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 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.