how we lock a pf???? what are the parameters used in this
command.how we understand whether an object is locked or not??
using command .....we have to use *PSSR? and trough
*status..how??.if we give an eg to me???pls answer me anyone..

Answer Posted / samul

how we lock a pf????

Ans :Using cmd ALCOBJ


how we understand whether an object is locked or not??
Ans : Using cmd DSPOBJLCK


we have to use *PSSR? and trough
*status..how??.if we give an eg to me???

Ans : To handle to record lock in pgm (RPG)
need to handle wiht status code 01218 in *PSSR subroutine.

Cheers...

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different commands used in rlu ?

1459


what is the necessary keyword for non-join logical file?

1176


what are the three line types in rlu ?

1485


Explain The Keywords Edtcde & Edtwrd?

842


why is as/400 called object oriented machine?

955






how do you use exceptional write in c specs?

1153


what is *inzsr used for?

1480


can error messages as a result of a comp, range or values keyword be overridden?

1140


what is the command to know key fields of file?

623


define the purpose of the *bcat function?

914


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1737


records can be read/update/deleted with which file?

639


What is access path in as400?

854


define the purpose/use for sflrna?

1010


What is data structure in as400? What is the use of data structure?

604