Some times While checking MSGW for object / member /
record locks ,I have seen it's locked by itself ...? How
it happen and what action we need to perform if job is
updating / writing a record....?

Answer Posted / guru

Usually a record lock will happen when you read a file
itself. To avoid file locks, use the following ways

1.Read(N)Read with no lock
2.When your file is in update mode and if you use any chain
function, then use Chain(N)

Cheers...

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2378


How Chain operation copies the record's data to the input buffer for the program?

1085


is this a rpg channel?

684


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4221


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1320






What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2521


what was the robotech rpg?

689


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1567


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1899


what is the difference between do while and do until?

715


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

1973


how do I declare a minor?

718


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

722


What is file identifier where we can use?

652


What is difference between bind by copy and bind by reference?

1736