Advertisement

03.15.2007 at 11:28PM PDT, ID: 22453403
[x]
Attachment Details

Extracting data from an unknown SCO Unix database (for Remanco POS)

Asked by nmcdermaid in Unix Systems Programming, SCO Unix

Tags: sco, unix

Hi

I'm trying to extract data from a POS system called Ramenco. Apparently this is running on SCO Unix, possibly with a SQLTurbo (?) back end

Data is already being extracted from one table with a scipt like the following:


#set -x
. /usr/local/bin/setit.term
. /usr/local/bin/setit

rm DBtmp
echo "
lines 0
select somecolumns
from sometable
where something = somethingelse
into DBTmp
/" | SQL

cat DBTmp | awk 'BEGIN {FS="|"}{if ( $3 == 1||2||3 ) print $3 "," $1 "," $2 "," $4 "," $5 }' >RemncoDB.CSV
rm DBTmp


..... then some more code to FTP RemancoDB.CSV to a windows box.




I think I have a basic understanding of what the script is doing. I need to extract data from a different table. To do that I need to interrogate the database and find out some table names and columns, and to do that I need to:

1. Work out what kind of database server it is (cant find SQLTurbo on the net)
2. How do I get some kind of interactive command line into it?
3. What commands do I use to list all of the tables and fields in the database?

Thanks,

NickStart Free Trial
[+][-]03.16.2007 at 12:38PM PDT, ID: 18737437

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2007 at 05:31PM PDT, ID: 18738772

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 10:43PM PDT, ID: 18754242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.21.2007 at 03:17PM PDT, ID: 18767789

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Unix Systems Programming, SCO Unix
Tags: sco, unix
Sign Up Now!
Solution Provided By: tfewster
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.24.2007 at 05:20AM PDT, ID: 18784967

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.25.2007 at 02:43AM PDT, ID: 18787724

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32