In your case, try to put your Sybase statements within execute ( ) blocks within proc sql:
PROC SQL;
connect to sybase ...;
execute (SET TEMPORARY OPTION Temp_Extract_Column_Delimiter = ',') by sybase;
execute (SET TEMPORARY OPTION Temp_Extract_Row_Delimiter = '') by sybase;
execute (SELECT * FROM mydatabasetable) by sybase;
disconnect from sybase;
QUIT;
This might work from a SAS syntax view. But if this will create your external file or not, you'll have to discuss with some Sybase people. I'm especially suspicious against the select statement. In my eyes Sybase might try to return the result to SAS, which is not feasible when using execute blocks.
Regards,
Linus
... View more