Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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..

Answers were Sorted based on User's Feedback



how we lock a pf???? what are the parameters used in this command.how we understand whether an obje..

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

how we lock a pf???? what are the parameters used in this command.how we understand whether an obje..

Answer / swadesh

using WRKOBJLCK cmd we can find the lock status.DSPOBJLCK
is not correct.

Is This Answer Correct ?    6 Yes 0 No

how we lock a pf???? what are the parameters used in this command.how we understand whether an obje..

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

how we lock a pf???? what are the parameters used in this command.how we understand whether an obje..

Answer / ramana

WRKOBJLCK is the correct command

Is This Answer Correct ?    2 Yes 0 No

how we lock a pf???? what are the parameters used in this command.how we understand whether an obje..

Answer / sasikumar

Specify 'U' in file type of F-Specification. Then Chain or
Read a record. The record will be locked.WRKOBJLCK
OBJ(File_Name) OBJTYPE(*FILE) or by using Shift+Esc and type
3 in the line. Then type option 12(Display locks, if active)
to view the locked records.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the use of UNIQUEUE KEY WORD? what is the difference between PFILE AND REF?

2 Answers  


What is SAA?

1 Answers  


Explain The Keywords Edtcde & Edtwrd?

0 Answers   IBM,


what the purpose of ovrdta, ovrata keywords?

1 Answers   IBM,


Suppose you have 3 members in a database file. How to read records from all the members Without using CL (OVRDBF) i.e. it should be handled exclusively in an RPG program?

6 Answers   IBM,


I want to run ls *.csv (sftp command) from CL Program... Can u plz tell me when SFTP command will start running? i.e.which command should I use in CL Program to run ls command?

2 Answers  


what is the maximum number of subfiles that can specified in a display file ?

1 Answers   IBM,


define the purpose of the iter operation?

1 Answers   IBM,


what are members?

0 Answers   IBM,


What is the purpose of "A CSRLOC (F1ROW F1COL)"?

1 Answers  


Difference Between Source Physical File & Physical File?

0 Answers   IBM,


what is xfoot opcode ?

1 Answers   IBM,


Categories