Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch export from sqltalk truncates records

Status
Not open for further replies.

chris100a

Programmer
Dec 19, 2009
1
US
Hi
I am new to the Gupta/sqlbase I am trying to export data from tables into a csv file using the BAT mode of the sqltalk (version 11.5.2). . Here is an example of what I am trying to do
sqltalk BAT DB=ISLAND/sysadm/sysadm INPUT=inv.sql OUTPUT=out.txt
the inv.sql is simply
SET ECHO OFF;
SET PAGESIZE 99999;
SET HEADING off;

select
FILE#||','||TITLE||','||FIRSTNAME||','||LASTNAME||','||AREACODEPHONE#||','||BIRTHDATE||','||CITY||','||
STATE||','||STREETLINE1||','||STREETLINE2||','||ZIPCODE||','||RATE1AMT||','||WORKERSCOMPCODE||','||HIREDATE||','||
SENIORITYDATE||','||EMAILADDRESS||','||EMPLOYEETYPE||','||COMPANYCODE||','||TERMINATIONDATE||','||PAYFRQ||','||
HOMEDEPARTMENT||','||JOBSUPERVISOR||','||FIELD9||','||FIELD9A||','||FIELD13
from emp;


to do so and it seems to work fine except that each record seems to be truncated to about 80 chars or so. I tried setting the linesize but it seems there is a limitation there too. Interestingly the same sql can run in the sqltalk.exe interactively and it happily formats and displays the complete record.

I would be most grateful if someone could tell me how to get around this issue. If in fact there is such hard length limitation, then what is best way to programmatically extract data from tables into a csv file (I need to schedule a job that will create such file, in other words need a batch solution).

Thank you in advance for your help
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top