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

How can we know running job is batch or interactive?

642


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1442


How to call one program from another program in RPG? please help me with the code

1249


What are the types of identifiers?

563


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1456






can you debug ile rpg program using isdb?

730


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?

4190


what do you mean by an input subfile, what are the keywords required?

759


explain sflclr, sflend, sfldlt, and sflcsrrrn?

877


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

2359


What is ment by record level identifier?

645


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

1953


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

712


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1008


How would display prime numbers using CL program?

5666