Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start 1

Status
Not open for further replies.

JSutor

MIS
Aug 11, 2004
30
US
When does a Start statement lock the record?? and when is it best to use the Start... No Lock??
 
I can't think of a reason for START to lock. How can it, as it does not address a specific record, even START EQUAL does not
 
Then why is there a start... No lock statement available??
 
The START statement logically positions a relative or indexed file for accessing records sequentially.
 
I should have told you I was talking about Cobol ILE I'm sorry about that!! There is a Start NO LOCK statement that is valid in Cobol ILE. But the question is since there is a Start NO LOCK option, at what point does a Start statement lock the record???
 
At least Microsoft COBOL and IBM COBOL [did] support it. Microsoft says: "[this syntax] is accepted by your COBOL system purely for compatibility with IBM 1.0 syntax and Microsoft V2.0 syntax".

START file-name [LOCK] [WAIT]

General Rules:
If you set the MS Compiler directive, the LOCK and WAIT clauses in the START statement are allowed and treated as documentary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top