Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

how to pick up the changed records every time in a subfile after the first change made ?

1742


how to toggle between single line and multi - line display of a particular record in a subfile?

1704


what is the function of rlu ?

1610


what does the opcode free do?

1879


What is program status data structure(psds) in as400?

1034


in conjunction with which statements can orxx and andxx conditions be used ?

1806


what is a program described file in rpg?

1661


Can level check error occur if we do chgpf?

1211


1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?

969


what is the maximum number of files allowed in rpg?

1570


how to get the cursor position?

1091


what is the difference between *like and *namvar ?

2462


in conjunction with what other keyword must ovrdta and ovrata be used?

1492


how can database records be read without lock ?

1867


how you will know whether you are in sfldrop or sflfold mode?

1012