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
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 |
Answer / swadesh
using WRKOBJLCK cmd we can find the lock status.DSPOBJLCK
is not correct.
| Is This Answer Correct ? | 6 Yes | 0 No |
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 |
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 |
how to define global parameter in ile ?
What are all the compiler directive statements?
what is the function of cpyf command?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
why do we use readc? What is sflnxtchg?
Hello friends, i am new to AS/400. Can any one help me in AS/400 i meant say can you send me some FAQS and interview questions.
what is the use of UNIQUEUE KEY WORD? what is the difference between PFILE AND REF?
not all command typed on command line are cl command? true r false
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
268 How many parameters can be defined in a RPG program. ?
different type of cursor?
What is the use of L specs in RPG?