To do multible compids, use the following script:
php /var/www/html_j3sg/institutions/ChangeCompidOfAllInstitutionalAfewCompaniesAtATime.php
Please note that the script mentioned above (ChangeCompidOfAllInstitutionalAfewCompaniesAtATime) only updates the current13FFilingpositions table, no archived tables.

This script actual updates 13F current table as well as both archive13F tables.

We got coming in compid: : 130744
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '130744'

The Shares Amount is 35200000

The cusip is 001712108
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '001712108'
Number of Rows :26

update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '13.42' where entryId = '2830743'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0' where entryId = '3133824'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '14.55' where entryId = '3726055'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0' where entryId = '4436256'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '138.71' where entryId = '6949337'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '56.54' where entryId = '7529461'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '19.06' where entryId = '10225303'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '2.84' where entryId = '12291068'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '1458.06' where entryId = '12868865'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '2.84' where entryId = '13809303'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '1451.25' where entryId = '13902691'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '4.97' where entryId = '14871339'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '37.54' where entryId = '15055750'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '37.54' where entryId = '15103584'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '1444.92' where entryId = '15246291'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '59.69' where entryId = '16352594'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '59.69' where entryId = '16353848'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0' where entryId = '16437862'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '37.53' where entryId = '16581195'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '1427.84' where entryId = '17068822'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '58.69' where entryId = '17727433'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '1448.24' where entryId = '19068346'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0.05' where entryId = '19146669'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '19.86' where entryId = '22745418'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0' where entryId = '23406500'
update current13Fpositions set compid = '130744', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001028584' , percentOut = '0' where entryId = '24519142'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '001712108'
Number of Rows :0

End Function
The Script is complete, exiting....