Page 1 of 1

How to call a file in external routine C

Posted: Thu Apr 16, 2009 11:16 pm
by monaz
Hi can anyone please guide me how to open and dataastage generated .txt file to open in external C routine.

I am using C routine in Parallel job. I am unable to open the datastage generated .txt file in External C rouitne.

If i remove the .txt file from the C routine and hard code the values instaed of file then i get required output.

But my requirement is that i need to open the .txt file and check for the logic and give the output

Posted: Fri Apr 17, 2009 8:23 am
by chulett
You're asking here for help writing a C program to read a flat file? There are more appropriate places out there for this kind of question, seeing as how this really isn't a DataStage question or problem, but perhaps someone may take pity on you and throw you a bone.

Best to find a forum/resource dedicated to C/C++ or perhaps leverage a local resource. Can a colleague where you work not help? :?

Posted: Fri Apr 17, 2009 3:06 pm
by ray.wurlod
... or read C++ for Dummies or some equivalent introductory book.