rows = arcpy.UpdateCursor(r"C:\TEMP\storesgathered.shp")
for row in rows:
    if row.getValue("CenType") == "REG":
        arcpy.CalculateField_management(r"C:\TEMP\storesgathered.shp", "Adj_X", 8)
    else:
        arcpy.CalculateField_management(r"C:\TEMP\storesgathered.shp", "Adj_X", 9)
    rows.updateRow(row)
del row, rowsRuntime error <class 'arcgisscripting.ExecuteError'>: ERROR 999999: Error executing function. Cannot acquire a lock. Cannot acquire a lock. [The table storesgathered.shp is being written by another process.] Failed to execute (CalculateField).
for row in rows:
    if row.getValue("CenType") == "REG":
        row.Adj_X = 8)
    else:
        row.Adj_X = 9)
    rows.updateRow(row)
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		Bruce, you may want to remove the extra ) at the end of row 3 and 5. For future viewers.
