I am trying to download a large amount of data for bank accounts. I login, then start entering account numbers that I read from a text file. I enter in all of the account #'s, (About 10,000 of them), enter a date, then start a capture and transmit a go for download.
For some reason I keep getting disconnected after right around 13,500 records recieved. Is there some sort of limit that I am not aware of? Here is my code:
proc main
string account
delfile "c:\financial\data\account_data.txt"
set capture file "account_data.txt"
set capture path "c:\financial\data\"
connect telnet "Datasource"
waitfor "begin logging on ****"
transmit "^M"
waitfor "Username: "
transmit "xxxxx^M"
waitfor "Password: "
transmit "xxxx^M"
waitfor "#ENTER USERCODE/PASSWORD PLEASE -"
transmit "xxxx xxxx^M"
waitfor "(MM/DD/YY) OR HIST FOR HISTORY"
transmit "hist^M"
if fopen 0 "c:\financial\data\accounts.txt" READ TEXT
while not feof 0
fgets 0 ticker
waitfor "MM/DD/YY OR BYE"
transmit "("
transmit account
transmit "01/01/97 01/01/98^M"
endwhile
else ; Display error message
errormsg "Could not open accounts!"
endif
fclose 0
waitfor "MM/DD/YY OR BYE"
transmit "bye^M"
waitfor "C TO CONTINUE"
capture on
transmit "c^M"
waitfor "&& 0 0.01^M^J"
capture off
transmit "end^M"
disconnect
endproc
For some reason I keep getting disconnected after right around 13,500 records recieved. Is there some sort of limit that I am not aware of? Here is my code:
proc main
string account
delfile "c:\financial\data\account_data.txt"
set capture file "account_data.txt"
set capture path "c:\financial\data\"
connect telnet "Datasource"
waitfor "begin logging on ****"
transmit "^M"
waitfor "Username: "
transmit "xxxxx^M"
waitfor "Password: "
transmit "xxxx^M"
waitfor "#ENTER USERCODE/PASSWORD PLEASE -"
transmit "xxxx xxxx^M"
waitfor "(MM/DD/YY) OR HIST FOR HISTORY"
transmit "hist^M"
if fopen 0 "c:\financial\data\accounts.txt" READ TEXT
while not feof 0
fgets 0 ticker
waitfor "MM/DD/YY OR BYE"
transmit "("
transmit account
transmit "01/01/97 01/01/98^M"
endwhile
else ; Display error message
errormsg "Could not open accounts!"
endif
fclose 0
waitfor "MM/DD/YY OR BYE"
transmit "bye^M"
waitfor "C TO CONTINUE"
capture on
transmit "c^M"
waitfor "&& 0 0.01^M^J"
capture off
transmit "end^M"
disconnect
endproc