Calling Server routine from Sequence Job with empty params

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
leandrohmvieira
Participant
Posts: 44
Joined: Wed Sep 02, 2015 7:19 am
Location: Brasilia, Brazil

Calling Server routine from Sequence Job with empty params

Post by leandrohmvieira »

Greetings,

I've built a recursive server routine, which i use arg2 to build my Ans, but to work, it must receive a empty string when called.

When i call it from an sequence job, if i let arg2 empty, i get the following compiling error:

"Missing Mandatory value for parameter Arg2"

There is a way to apply a "empty string" value or make arg2 non-mandatory?

thanks in advance.
Leandro Vieira

Data Expert - Brasilia, Brazil
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Arg2 = ''

Is an empty string. Not sure what you are really needing. You cannot leave an argument off when calling a routine.
Mamu Kim
leandrohmvieira
Participant
Posts: 44
Joined: Wed Sep 02, 2015 7:19 am
Location: Brasilia, Brazil

Post by leandrohmvieira »

Just trying to make my routine a little more elegant, i will try to pass '' right now.
Leandro Vieira

Data Expert - Brasilia, Brazil
leandrohmvieira
Participant
Posts: 44
Joined: Wed Sep 02, 2015 7:19 am
Location: Brasilia, Brazil

Post by leandrohmvieira »

Worked like a charm, thank you kduke!
Leandro Vieira

Data Expert - Brasilia, Brazil
Post Reply