Routine Output question

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Routine Output question

Post by velagapudi_k »

When I am executing a TCL command in a routine to get the category of a job in a project, the output is returned as below
Developers Work Area
\U495278 Velagapudi\
JDAXml
How can I get it as below
Developers Work Area\U495278 Velagapudi\JDAXml
Venkat Velagapudi
nick.bond
Charter Member
Charter Member
Posts: 230
Joined: Thu Jan 15, 2004 12:00 pm
Location: London

Post by nick.bond »

Code: Select all

Ereplace(yourString, @FM, '')
Regards,

Nick.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The wraparound in the column is caused by the default display width in the file dictionary. The inserted character to trigger the wraparound is not @FM, so Nick's suggestion won't work. What you need to do is to override the dictionary specification with a field qualifier - in this case FMT to override the format. For example:

Code: Select all

SELECT NAME, CATEGORY FMT '40L' FROM DS_JOBS WHERE NAME NOT LIKE '\\%' ORDER BY 2,1;
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