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 compiler directive in as400? Give example of compiler directive.?

0 Answers  


WHAT IS AS/400 SYNORIO?

0 Answers   CTS, EDS,


how to get no of records in file in rpg with out cl cmd

2 Answers   iGate,


How to genarate the reports?

1 Answers  


What is Job description?

1 Answers  






how do handle file exception/error?

0 Answers   IBM,


Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?And please tell me what is the difference between SCAN AND CHECK opcodes?can any body tell me in real time senario?with example?

3 Answers  


how a varible can be passed to a subfile...accnt1 contain data in a data area..ie Daccnt1 uds,Daccnt2 3 overlay(accnt1:1), DNo 4 overlay(accnt1:4)..we want to transfer this dataarea value from acnt0001 to a subfile..that means to enter each record we have to incriment account no,, i normal window we can do move accnt1 account_no eval account_no=accnt1 eval no=no+1 exfmt usr_account how it possible with Subfile????????.Please do answer? (Thank you for all your answers dear friends!!)

1 Answers   CTS,


how do you specify page overflow indicator for printer files in rpg?

1 Answers   IBM,


what the purpose of ovrdta, ovrata keywords?

1 Answers   IBM,


What is the Function of PDM?

1 Answers  


what are the basic features of seu?

0 Answers   IBM,


Categories