Server Routine Name Pattern

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
vishal_rastogi
Participant
Posts: 47
Joined: Thu Dec 09, 2010 4:37 am

Server Routine Name Pattern

Post by vishal_rastogi »

Hi

I am using one audit routine in that i am passing my parameters as

Stagename|linkname|TgtStage name| tgt linkname

is there any way to use the pattern based parameters

like : *_SRC_STG|*_SRC_LNK|*_TGT_STG|*_TGT_LNK

Thanks
Vish
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

It all depends on the way routine is written. If it is written to look for a pattern then don't even have to pass that *. Hence I don't think if I can answer this without looking at the routine itself.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

Arg1 Matches "0X'_SRC_STG|'0X'_SRC_LNK|'0X'_TGT_STG|'0X'_TGT_LNK'"
The pattern element 0X matches any number of characters. If you require there to be more than zero characters, change each "0X" to "1X0X".

You can use "..." in place of "0X".

This post probably doesn't belong in the Metadata and Metadata Workbench forum.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Was wondering the same thing and waiting to see where the discussion went. Moved.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vishal_rastogi
Participant
Posts: 47
Joined: Thu Dec 09, 2010 4:37 am

Post by vishal_rastogi »

Thanks Ray

Just wanted to know 0X is hexadecimal value or it is something else
Vish
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

The preceding integer is the repeating factor.

X stands for any characters.
A stands for any alphabetic characters.
N stands for any numeric characters.

You can read a lot more about the pattern matching operator, MATCH and MATCHES, in the IBM InfoSphere DataStage BASIC Reference Guide.
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What Eric said. The appearance of "1X0X" later in my post may have given you a clue.
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