Hello,
I wrote a small Perl job to FTP datasets from the mainframe and save them on the user's C drive as a text file. I was then going to have a process to load the text files into an MS Access 97 database. When I go to import the text files it does not recognize the end of line character and it tries to import the text file as one continuous record. Does anyone know why or how I can format the downloaded file so it can be imported into access? Here is my code:
$Class = <I1Detail>;
chomp $Class;
$Class =~ s/^\s+//; #Removes Leading spaces
$Class =~ s/\s+$//; #Removes Trailing spaces
$Class_Local = $DownloadPath . "Classes11.txt";
$Class = "'" . $Class . "'";
close(I1Detail);
$ftp->get($Class, $Class_Local)
or die "Get failed\n";
print "FTP of Class file to local drive successfull...\n";
$ftp->quit;
Any help would be greatly appreciated.
Thanks!
Tript99.
I wrote a small Perl job to FTP datasets from the mainframe and save them on the user's C drive as a text file. I was then going to have a process to load the text files into an MS Access 97 database. When I go to import the text files it does not recognize the end of line character and it tries to import the text file as one continuous record. Does anyone know why or how I can format the downloaded file so it can be imported into access? Here is my code:
$Class = <I1Detail>;
chomp $Class;
$Class =~ s/^\s+//; #Removes Leading spaces
$Class =~ s/\s+$//; #Removes Trailing spaces
$Class_Local = $DownloadPath . "Classes11.txt";
$Class = "'" . $Class . "'";
close(I1Detail);
$ftp->get($Class, $Class_Local)
or die "Get failed\n";
print "FTP of Class file to local drive successfull...\n";
$ftp->quit;
Any help would be greatly appreciated.
Thanks!
Tript99.