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?

Answers were Sorted based on User's Feedback



I have SQLRPGLE program in which there are some update statements which executed correctly. there ..

Answer / kishore

at the time of compiling program take f4 & set commit option *NONE

or in program place

c/exec sql
c/+ set option commit = *none
c/end-ecxec

after write statement like

c/exec sql
c/+ update table name set empname = 'value'
c/end-ecxe

Is This Answer Correct ?    9 Yes 1 No

I have SQLRPGLE program in which there are some update statements which executed correctly. there ..

Answer / 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

More IBM AS400 AllOther Interview Questions

can a indexed file be accessed in arrival sequence in rpg program?

1 Answers   IBM,


268 How many parameters can be defined in a RPG program. ?

1 Answers  


Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?

3 Answers  


define the purpose of the iter operation?

1 Answers   IBM,


Distinguish between logical file and physical file?

1 Answers  


What is the use of E specification in RPG?

1 Answers  


how do you read changed records backward in subfile?

0 Answers   IBM,


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

1 Answers   Wipro,


which are control break logic indicators?

0 Answers   IBM,


what is the purpose of ovrdta and ovrata keywords ?

1 Answers   IBM,


How can we create subsystem in as400?

1 Answers  


what is a logical file?

1 Answers   IBM,


Categories