Hi,
Just try to allocate the file in the CL if it fails, it's already locked.
Regards,
Wilson
===========
Hi,
You can use the command ALCOBJ to allocate the file.
Regards,
Martin Gilbert.
Last Wiki Answer Submitted: May 19, 2009 1:57 pm by philpl1jb44,150 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
I want to test for a dead lock scenario on a file. for this i used ALCOBJ command with EXCL lock status. But if i go a read operation on the file in COBOL400 pgm its not returning Sqlcode -913. But i want to have a dead lock on file i.e EXCL lock status.
Can you give me some safe step for decreasing my ASP in PROD. im using i595 server and i need to decrese my ASP. I already deleted the audit journal and the JOBLOG but still high ASP.
Martin Gilbert,
I want to test for a dead lock scenario on a file. for this i used ALCOBJ command with EXCL lock status. But if i go a read operation on the file in COBOL400 pgm its not returning Sqlcode -913. But i want to have a dead lock on file i.e EXCL lock status.
I would be thannkful if u email ur reply to mohankmv@gmail.com.
Was the ALCOBJ command run in the same job that called the SQL program? If so, there was no conflict.
its not returning Sqlcode -913.
If there were two separate jobs, then what happened? What was the SQLCODE?
Finally, just to ensure that all possible details are covered, is it a COBOL/400 or an ILE COBOL program? Which compiler did you use?
Tom
Hi Martin,
Can you give me some safe step for decreasing my ASP in PROD. im using i595 server and i need to decrese my ASP. I already deleted the audit journal and the JOBLOG but still high ASP.
Thanks for your feedback.
Philip/AS400-Phils
Check this Redpaper out