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 |
what are the different types of keys in AS400
What are the types of object authorities?
I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to change the value from N to Y using SQL stmt ...How can I update this....?
Hi Friends, I need immediately answer for this: Senario is that,I am selecting records from the display and window subfile on the basis of Reason Code and some more fields but spool file not showing the same records which i have selected by display and window subfile. Q.What could be the causes(resons)to not show records properly (just selected in the display file and Window subfile)according the selection criteria of the records. Q.What would be the solutions to show records properly in the spool file just as selected in in the display file and window subfile according to the selection criteria.
Can anybody know difference between SNDUSRMSG AND SNDPGMMSG IN CL PROGRAMMING? IF DON'T KNOW MAIL ME @ gkarthik.as400@gmail.com
How to trap errors in CL?
what is elastic and non elastic subrile?
How can we update a specific field in RPG?
What is the purpose of PR and PI in calling program and called program? in Called program PR is compulsory?
how many printer files can be defined in f specs ?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
when would you use or not use this approach?