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

Difference Between Interactive & Batch Job?

783


what are different types of substems?

1333


What is difference between rename and prefix?

578


some special characters I key in my html source members show different on my web pages. Why? How can I solve this?

608


What is file information data structure(infds) in as400?

964






In RPG How to read a records from a file without using read opcodes?

954


how many files, printer files you can describe in a rpg?

626


explain the use of dftwrt display keyword?

1125


what is sflpag and sflsiz ?

2263


how to define global parameter in ile ?

625


What Is The Difference Between Goto & Exsr?

1166


what are the various types of device files?

986


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

1163


what is the purpose of overrides?

1013


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

2893