GET DESCRIPTOR: sybase -> teradata

Database

GET DESCRIPTOR: sybase -> teradata

Hi,
I need to convert sentences from sybase to teradata, and these sentences have the next form (in a C program):

/*sSelect = Select... from ... etc*/
EXEC SQL PREPARE :hsIdent FROM :sSelect;

/*Declare Cursor*/
EXEC SQL DECLARE :hsCursor CURSOR FOR :hsIdent;

/*Open Cursor with Descriptor*/
EXEC SQL OPEN :hsCursor USING SQL DESCRIPTOR :hsDescriptor ;

/*Fetch*/
EXEC SQL FETCH :hsCursor INTO SQL DESCRIPTOR :hsDescriptor;

/*Then, there is some sentences with the descriptor that I need to convert to teradata - i = 1 */
EXEC SQL GET DESCRIPTOR :hsDescriptor VALUE :i :colname = NAME;
EXEC SQL GET DESCRIPTOR :hsDescriptor VALUE :i :coltype = TYPE ;

/*And with the coltype, the next*/
switch (coltype)
case 2,3,7,8:
EXEC SQL GET DESCRIPTOR :hsDescriptor VALUE :cnt :float_buff = DATA;
case 4,14:
EXEC SQL GET DESCRIPTOR :hsDescriptor VALUE :cnt :int_buff = DATA ;
case 1,9,-10:
EXEC SQL GET DESCRIPTOR :hsDescriptor VALUE :cnt :char_buff = DATA ;

If somebody understand how can I convert all this, or if you need more information, question me, please.

Thank you very much.
Greetings.