astrozomby
Technical User
I've got two things happening that I see similar, unresolved issues on this forum.
I'm going to jump to the conclusion that one of the other folks has figured out what
they needed to get their issue resolved, and hope I can get a response as well.
RUNNING AS BAT:
<
COLUMNS WIDE ISSUE:
<
I have tried to run the query as a command line as follows:
sqltalk BAT DB=POS/STARUSER/STARUSER INPUT=c:\path\inv.sql OUTPUT=c:\path\out.txt
I've attempted to include the queries I'm using below, as well as the output that
I get from the command line "OUTPUT" versus the output I get when I run the same query
from within the SQLTALK.EXE application "OUTPUT WITHIN SQLTALK".
My goal is to get the "OUTPUT WITHIN SQLTALK" information in an automated fashion, such
as by running a .bat that executes the above command line on a regular schedule.
I attempted to add the "SET LINESIZE 5000;" line to the top of my INV.SQL file, but this
did not solve the trouble with cutoff results when running via command line.
------------------------------ INV.SQL ------------------------------
Select
PRODUCT.WEB_ITEM as WEB,
PRODUCT_SIZE.SKU as SKU,
ACTIVE_INV.ONHAND_QTY as QTY,
PRODUCT_SIZE.RETAIL_PRICE as PRICE,
PRODUCT.STYLE as STYLE,
PRODUCT.DESCRIPTION as DESC,
PRODUCT.DEPARTMENT as DEPT,
DEPARTMENT.DEPARTMENT_NAME as DEPT_NAME,
PRODUCT.CLASS as CLASS,
CLASS.CLASS_NAME as CLASS_NAME,
PRODUCT.SUBCLASS as SUBCLASS,
PROD_NOTES.NOTE as EXTENDED_NOTES
From
SYSADM.CLASS CLASS,
SYSADM.DEPARTMENT DEPARTMENT,
SYSADM.ACTIVE_INV ACTIVE_INV,
SYSADM.PROD_NOTES PROD_NOTES,
SYSADM.PRODUCT_SIZE PRODUCT_SIZE,
SYSADM.PRODUCT PRODUCT,
SYSADM.STYLE_NOTE STYLE_NOTE
Where
PRODUCT.DEPARTMENT = DEPARTMENT.DEPARTMENT
And PRODUCT.STYLE = PRODUCT_SIZE.STYLE
And PRODUCT_SIZE.SKU = ACTIVE_INV.SKU
And STYLE_NOTE.NOTE_ID = PROD_NOTES.NOTE_ID
And STYLE_NOTE.STYLE = PRODUCT.STYLE
And PRODUCT.CLASS = CLASS.CLASS
And PRODUCT.DEPARTMENT = CLASS.DEPARTMENT
;
------------------------------ END INV.SQL -------------------------
------------------------------ OUTPUT ------------------------------
Select
PRODUCT.WEB_ITEM as WEB,
PRODUCT_SIZE.SKU as SKU,
ACTIVE_INV.ONHAND_QTY as QTY,
PRODUCT_SIZE.RETAIL_PRICE as PRICE,
PRODUCT.STYLE as STYLE,
PRODUCT.DESCRIPTION as DESC,
PRODUCT.DEPARTMENT as DEPT,
DEPARTMENT.DEPARTMENT_NAME as DEPT_NAME,
PRODUCT.CLASS as CLASS,
CLASS.CLASS_NAME as CLASS_NAME,
PRODUCT.SUBCLASS as SUBCLASS,
PROD_NOTES.NOTE as EXTENDED_NOTES
From
SYSADM.CLASS CLASS,
SYSADM.DEPARTMENT DEPARTMENT,
SYSADM.ACTIVE_INV ACTIVE_INV,
SYSADM.PROD_NOTES PROD_NOTES,
SYSADM.PRODUCT_SIZE PRODUCT_SIZE,
SYSADM.PRODUCT PRODUCT,
SYSADM.STYLE_NOTE STYLE_NOTE
Where
PRODUCT.DEPARTMENT = DEPARTMENT.DEPARTMENT
And PRODUCT.STYLE = PRODUCT_SIZE.STYLE
And PRODUCT_SIZE.SKU = ACTIVE_INV.SKU
And STYLE_NOTE.NOTE_ID = PROD_NOTES.NOTE_ID
And STYLE_NOTE.STYLE = PRODUCT.STYLE
And PRODUCT.CLASS = CLASS.CLASS
And PRODUCT.DEPARTMENT = CLASS.DEPARTMENT
;
WEB SKU QTY PRICE STYLE
=== ==================== =========== =============== ===============
Y 400100170571 2 7.99 0-20239
Y 400100010242 1 6.99 rampant031
Y 400100012420 1 10.99 zone022
Y 400100007143 1 10.99 rr003
4 ROWS SELECTED IN 0.02 SECONDS
200.00 ROWS PER SECOND / 0.00 SECONDS PER ROW
----------------------------END OUTPUT ------------------------------
------------------------------ OUTPUT WITHIN SQLTALK ------------------------------
WEB SKU QTY PRICE STYLE DESC DEPT DEPT_NAME CLASS CLASS_NAME SUBCLASS EXTENDED_NOTES
=== ==================== =========== =============== =============== ============================== ========== ============================== ====== ============================== ======== ==============================================================================================================================================================================================================================================================
Y 400100170571 1 7.99 0-20239 (vc) madonna: like a virgin 1 Vinyl 999 Misc. 20 uuuuuuuuuuuuu
Y 400100010242 1 6.99 rampant031 Gorilla Pimp (b) "this is real 1 Vinyl 100 Breakbeat zzzzzzzzzzzzz
Y 400100012420 1 10.99 zone022 arksun (b/tra) "earth one" 1 Vinyl 100 Breakbeat yyyyyyyyy
Y 400100007143 1 10.99 rr003 Downpressor (b) "nine" 1 Vinyl 100 Breakbeat xxxxxxx
4 ROWS SELECTED
IN 0.02 SECONDS
200.00 ROWS PER SECOND / 0.00 SECONDS PER ROW
------------------------------ END OUTPUT WITHIN SQLTALK ------------------------------
I'm going to jump to the conclusion that one of the other folks has figured out what
they needed to get their issue resolved, and hope I can get a response as well.
RUNNING AS BAT:
<
COLUMNS WIDE ISSUE:
<
I have tried to run the query as a command line as follows:
sqltalk BAT DB=POS/STARUSER/STARUSER INPUT=c:\path\inv.sql OUTPUT=c:\path\out.txt
I've attempted to include the queries I'm using below, as well as the output that
I get from the command line "OUTPUT" versus the output I get when I run the same query
from within the SQLTALK.EXE application "OUTPUT WITHIN SQLTALK".
My goal is to get the "OUTPUT WITHIN SQLTALK" information in an automated fashion, such
as by running a .bat that executes the above command line on a regular schedule.
I attempted to add the "SET LINESIZE 5000;" line to the top of my INV.SQL file, but this
did not solve the trouble with cutoff results when running via command line.
------------------------------ INV.SQL ------------------------------
Select
PRODUCT.WEB_ITEM as WEB,
PRODUCT_SIZE.SKU as SKU,
ACTIVE_INV.ONHAND_QTY as QTY,
PRODUCT_SIZE.RETAIL_PRICE as PRICE,
PRODUCT.STYLE as STYLE,
PRODUCT.DESCRIPTION as DESC,
PRODUCT.DEPARTMENT as DEPT,
DEPARTMENT.DEPARTMENT_NAME as DEPT_NAME,
PRODUCT.CLASS as CLASS,
CLASS.CLASS_NAME as CLASS_NAME,
PRODUCT.SUBCLASS as SUBCLASS,
PROD_NOTES.NOTE as EXTENDED_NOTES
From
SYSADM.CLASS CLASS,
SYSADM.DEPARTMENT DEPARTMENT,
SYSADM.ACTIVE_INV ACTIVE_INV,
SYSADM.PROD_NOTES PROD_NOTES,
SYSADM.PRODUCT_SIZE PRODUCT_SIZE,
SYSADM.PRODUCT PRODUCT,
SYSADM.STYLE_NOTE STYLE_NOTE
Where
PRODUCT.DEPARTMENT = DEPARTMENT.DEPARTMENT
And PRODUCT.STYLE = PRODUCT_SIZE.STYLE
And PRODUCT_SIZE.SKU = ACTIVE_INV.SKU
And STYLE_NOTE.NOTE_ID = PROD_NOTES.NOTE_ID
And STYLE_NOTE.STYLE = PRODUCT.STYLE
And PRODUCT.CLASS = CLASS.CLASS
And PRODUCT.DEPARTMENT = CLASS.DEPARTMENT
;
------------------------------ END INV.SQL -------------------------
------------------------------ OUTPUT ------------------------------
Select
PRODUCT.WEB_ITEM as WEB,
PRODUCT_SIZE.SKU as SKU,
ACTIVE_INV.ONHAND_QTY as QTY,
PRODUCT_SIZE.RETAIL_PRICE as PRICE,
PRODUCT.STYLE as STYLE,
PRODUCT.DESCRIPTION as DESC,
PRODUCT.DEPARTMENT as DEPT,
DEPARTMENT.DEPARTMENT_NAME as DEPT_NAME,
PRODUCT.CLASS as CLASS,
CLASS.CLASS_NAME as CLASS_NAME,
PRODUCT.SUBCLASS as SUBCLASS,
PROD_NOTES.NOTE as EXTENDED_NOTES
From
SYSADM.CLASS CLASS,
SYSADM.DEPARTMENT DEPARTMENT,
SYSADM.ACTIVE_INV ACTIVE_INV,
SYSADM.PROD_NOTES PROD_NOTES,
SYSADM.PRODUCT_SIZE PRODUCT_SIZE,
SYSADM.PRODUCT PRODUCT,
SYSADM.STYLE_NOTE STYLE_NOTE
Where
PRODUCT.DEPARTMENT = DEPARTMENT.DEPARTMENT
And PRODUCT.STYLE = PRODUCT_SIZE.STYLE
And PRODUCT_SIZE.SKU = ACTIVE_INV.SKU
And STYLE_NOTE.NOTE_ID = PROD_NOTES.NOTE_ID
And STYLE_NOTE.STYLE = PRODUCT.STYLE
And PRODUCT.CLASS = CLASS.CLASS
And PRODUCT.DEPARTMENT = CLASS.DEPARTMENT
;
WEB SKU QTY PRICE STYLE
=== ==================== =========== =============== ===============
Y 400100170571 2 7.99 0-20239
Y 400100010242 1 6.99 rampant031
Y 400100012420 1 10.99 zone022
Y 400100007143 1 10.99 rr003
4 ROWS SELECTED IN 0.02 SECONDS
200.00 ROWS PER SECOND / 0.00 SECONDS PER ROW
----------------------------END OUTPUT ------------------------------
------------------------------ OUTPUT WITHIN SQLTALK ------------------------------
WEB SKU QTY PRICE STYLE DESC DEPT DEPT_NAME CLASS CLASS_NAME SUBCLASS EXTENDED_NOTES
=== ==================== =========== =============== =============== ============================== ========== ============================== ====== ============================== ======== ==============================================================================================================================================================================================================================================================
Y 400100170571 1 7.99 0-20239 (vc) madonna: like a virgin 1 Vinyl 999 Misc. 20 uuuuuuuuuuuuu
Y 400100010242 1 6.99 rampant031 Gorilla Pimp (b) "this is real 1 Vinyl 100 Breakbeat zzzzzzzzzzzzz
Y 400100012420 1 10.99 zone022 arksun (b/tra) "earth one" 1 Vinyl 100 Breakbeat yyyyyyyyy
Y 400100007143 1 10.99 rr003 Downpressor (b) "nine" 1 Vinyl 100 Breakbeat xxxxxxx
4 ROWS SELECTED
IN 0.02 SECONDS
200.00 ROWS PER SECOND / 0.00 SECONDS PER ROW
------------------------------ END OUTPUT WITHIN SQLTALK ------------------------------