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 correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?

8 Answers   Wipro,


What is Spool file, Why is it required?

1 Answers  


define the purpose/use for sflrna?

1 Answers   IBM,


does cl support arrays

1 Answers  


what is difference between accespath and datapath? what is the difference between accespath and open datapath?

2 Answers  






define the purpose of the *cat function?

1 Answers   IBM,


what is the difference between packed decimal and zoned decimal?

1 Answers   IBM,


define data structure?

1 Answers   IBM,


name few ibm supplied libraries?

2 Answers   IBM,


A join logical file has how many record formats?

0 Answers   IBM,


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

0 Answers  


how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

1 Answers   IBM,


Categories