How to explicitely Lock a record of a file in a SQLRPGLE program using embeded SQLs?
Member Login:
e-mail:
password:
Register
Forgot Password
Search:
Entire Site
IT Answers
IT Blogs
Site FAQ
Home
>
IT Answers
>
AS/400
> How to explicitely Lock a record of a file in...
Lokanath
5 pts.
Q:
How to explicitely Lock a record of a file in a SQLRPGLE program using embeded SQLs?
Record lock
,
Embedded SQL
,
SQLRPGLE
How to explicitely Lock a record of a file in a SQLRPGLE program using embeded SQLs?
ASKED:
May 18 2008 6:32 AM GMT
Add to Watchlist
Report Objectionable Content
RSS - Question Updates
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
RELATED QUESTIONS
Record Locking
Page at a time subfile
Flat file
GAC
300 pts.
A:
RATE THIS ANSWER
0
Click to Vote:
0
0
Make the Select statement with the "For Update" clause, this way the record(s) selected will be locked until the Cursor releases it:
Declare MyCursor For
Select *
From MyFile
Where MyCondition
For Update
...
Close MyCursor
Regards,
Gerardo
Last Answered:
May 19 2008 3:05 PM GMT
by
GAC
300 pts.
View History
A:
Make the Select statement with the "For Update" clause, this way the record(s) selected will be locked until the Cursor releases it: Declare MyCursor For Select * From MyFile Where MyCondition For Update ... Close MyCursor Regards, Gerardo
Please complete the following information:
REGISTER / LOG-IN TO ANSWER QUESTION
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Submit your e-mail address below to continue
E-mail: 
E-mail:
Handle:
Password:
Forgot Password?
Create Handle:
Your handle identifies you in ITKnowledgeExchange. Max 30 char.
Create Password:
Confirm Password:
Yes, I agree to the IT Knowledge Exchange
Terms and Conditions.
hidden modal window
RSS - Discussions
Help
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Please complete the following information:
REGISTER / LOG-IN TO DISCUSS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Submit your e-mail address below to continue
E-mail: 
E-mail:
Handle:
Password:
Forgot Password?
Create Handle:
Your handle identifies you in ITKnowledgeExchange. Max 30 char.
Create Password:
Confirm Password:
Yes, I agree to the IT Knowledge Exchange
Terms and Conditions.
hidden modal window
Ask a Question
Question Title:
(150 char. limit.)
Question:
(Please be specific.)
Tags:
(Separate each tag with a comma.)
What is a Tag?
Browse IT Answers by Topic
AS/400
Channel
CIO
CRM
Database
DataCenter
DataManagement
Development
Exchange
Linux
Lotus Domino
Microsoft Windows
Mobile
Networking
Oracle
SAP
Security
SQL Server
Storage
Virtualization
VoIP
>>
VIEW ALL TAGS