How to use Macro

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

How to use Macro

Post by chitravallivenkat »

Hi Guys,

I am having one Macro that will convert seq file to xls file. Now I don't know how to use Macro in DS job.

Please give suggestion me how to use.

Thanks in advance.

Venkat
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What sort of a "Macro"? There are many different types and definitions of macros. In DataStage the term is not really used, I've seen it used in relation to DataStage Transforms but somehow don't think that this is what you mean. Excel Macros cannot be used in DataStage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You would need to create a small executable (probably in Visual Basic) that invoked Excel and ran the macro. DataStage itself can only access Excel via ODBC, and there is no mechanism within ODBC for running Excel macros. DataStage can, however, invoke the executable via ExecDOS as a before/after subroutine, or via DSExecute() from within one of your own routines.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply