Wrapper Command Line Parameters

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Wrapper Command Line Parameters

Post by jhmckeever »

Hi All,

I'm building (as a test) a wrapped called stage using the following code:

Code: Select all

int main( int argc, char **argv ) { 
  for ( int j=0 ; j < (argc) ; j++ ) { 
    printf ("%s ", argv[j]);  } 
  printf ("\n");
  return 0; 
} 
... which as you'll see simply writes the command line arguments to stdout.

My wrapper stage's command line calls the program above and is configured with properties like this:

Code: Select all

Property,  Value,        Conversion
None,      NoneDef,      None
Name,      NameDef,      -Name
NameValue, NameValueDef, -NameValue
Value,     ValueDef,     -Value
ValueOnly, ValueOnlyDef, ValueOnly
... in an attempt to see (in the log) which properties are making it onto the command line. What I actually see is:

writeargs -NameValue

Does anyone have any pointers where I might be going wrong? I've read the docs but it's not helped much.

Thanks very much,
John.
Post Reply