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

We can lock the pf using
ALCOBJ OBJ((CUSMASFL *FILE *EXCL))


To ensure the object is locked :
WRKOBJLCK OBJ(CUSMASFL) OBJTYPE(*FILE)

To release the lock: Deallocate Object command
DLCOBJ OBJ((CUSMASFL *FILE *EXCL))

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different opcodes available in rpg for database access ?

815


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1151


which are the member types which seu supports?

813


what is a spool file?

676


how can I give more performance to some selected pages?

615






What are the types of data structure in as400?

543


what is full form for dds?

745


what is scan and xlate?

1091


when are the unique constraints executed?

684


can you specify a display file to be used in the following modes input,output, or combined modes ?

944


how can I predict the performance of my cgis?

650


what is arrival sequence?

1115


what is elastic and non elastic subrile?

563


what are dds required for subfile?

587


how can you detect and handle a record lock situation?

1219