Search found 9 matches

by Jeroens
Thu Jul 25, 2013 3:30 am
Forum: General
Topic: How to add dots between initials?
Replies: 3
Views: 2538

How to add dots between initials?

Hi,

Does anybody know how to add dots between initials?

For instance:
JFK --> J.F.K.
P --> P.
by Jeroens
Mon Apr 08, 2013 6:05 am
Forum: General
Topic: Parallel routine; return type CHAR (C++)
Replies: 1
Views: 2205

Parallel routine; return type CHAR (C++)

Hi guys, For some reason I'm having issues with parallel routines when it comes to the char type. To understand my issue, I will show it by a simple example. I'm using the following C++ script (source: http://dwbitutorials.wordpress.com/2013/03/12/datastage-parallel-routines-1/): #include <stdio.h> ...
by Jeroens
Wed Apr 03, 2013 3:55 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

Well noted Ray. To avoid this, let's make the code more simplified: char * format(double d, char *buf) { sprintf(buf, "%.2f", d); return buf; } Parallel Routine setting: External subroutine name : format Type : External Function Return type : char Argument name : d (native type: double) (c...
by Jeroens
Wed Apr 03, 2013 2:19 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

I've used main() as an External subroutine name: This is the actual function name in the C++ code. So I've simplified the code and erased the main() function: char * format(double d, char *buf) { char *loc = setlocale(LC_ALL, NULL); setlocale(LC_ALL, "nl_NL.utf-8"); sprintf(buf, "%.2f...
by Jeroens
Tue Apr 02, 2013 6:09 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

I found out that a routine doesn't make use of the main function. Why? Something to do with the entry points?
by Jeroens
Tue Apr 02, 2013 2:55 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

So I need to create a routine without a main() function. That's a challenge :)
by Jeroens
Mon Apr 01, 2013 1:59 pm
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

That's correct. For some reason it's failing when I'm using an object file. So I've used a dll library. New update on this issue; I've amended the external subroutine name to 'main' and argument name to 'argv' (double). I'm now getting the following error message: Parallel job reports failure (code ...
by Jeroens
Fri Mar 29, 2013 3:18 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

I've used a lib file and for some reason he is able to open the file. But now I'm getting a different error message: Output from transformer compilation follows: ##I IIS-DSEE-TFCN-00001 02:05:13(000) <main_program> IBM WebSphere DataStage Enterprise Edition 8.1.0.4987 Copyright (c) 2001, 2005-2008 I...
by Jeroens
Tue Mar 26, 2013 9:01 am
Forum: General
Topic: Routine C++ compiling issue
Replies: 11
Views: 6846

Routine C++ compiling issue

Hi guys, I'm having an issue with creating a C++ parallel routine. I have this simple CPP code (IntTest.cpp): #include <stdio.h> int trans(int i) { if(i>5) return i; else return i+5; } What I've done so far: 1. Created an parrelel routine Routine name : myRoutine External subroutine name : trans Typ...