I have SQLRPGLE program in which there are some update
statements which executed correctly. there were no errors run
time. Once the program gets over, the file was not updated
with the new values. What might be the reason?

Answer Posted / shashank jain

In your code write
c/exec sql
c/+ set isolation level = NC
c/end-exec
before your update statement

Or
try this as your update statement both will work
c/exec sql
c/+ update table name set empname = 'value' with NC
c/end-exec

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when would you use or not use this approach?

1204


how to read database records without locking them?

1494


what are the various types of device files?

1287


difference between sflrcdnbr and sflnxtchg?

903


how to develop some simple graphs (bar charts) using just html?

848


How to avoid using indicators in ile ?

990


how do you know that records are locked?

1552


i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.

1253


what are indicators?

805


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3364


what is a composite key?

1316


What Is The Difference Between Goto & Exsr?

1390


What is the difference between crtdupobj and copyf?

930


maximum number of subfiles that can be active for a single file is?

1324


explain the purpose of keep and assume keywords?

1402