I have extracted some data using a stored procedure. the following works perfectly...
-* File mySQL.FEX
-DEFAULT &YEAR='2003';
-DEFAULT &WEEK='20';
SET SQLENGINE=SQLMSS
SQL EX [server].DBASE.DBO.SPROC &YEAR,&WEEK;
TABLE FILE SQLOUT
PRINT *
END
...However, I want to format the output from this Print * Statement. It won't work. I have tried to specify the fieldnames that I expect to get from the Print * function but it still fails.
I have also attempted to depoit to a hold file, which works, but then when I call on the hold file using the field names it say's field name not recognised.
Someone please put me out of my misery.
Cheers
Matthew
-* File mySQL.FEX
-DEFAULT &YEAR='2003';
-DEFAULT &WEEK='20';
SET SQLENGINE=SQLMSS
SQL EX [server].DBASE.DBO.SPROC &YEAR,&WEEK;
TABLE FILE SQLOUT
PRINT *
END
...However, I want to format the output from this Print * Statement. It won't work. I have tried to specify the fieldnames that I expect to get from the Print * function but it still fails.
I have also attempted to depoit to a hold file, which works, but then when I call on the hold file using the field names it say's field name not recognised.
Someone please put me out of my misery.
Cheers
Matthew