String format

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
DS_MJ
Participant
Posts: 157
Joined: Wed Feb 02, 2005 10:00 am

String format

Post by DS_MJ »

Hello All:

My source file is a Complex flat file with Data Format set to EBCDIC and Record Style to Binary. I can view data fine.

In the table there is a column set to columnname char 1. The source file for that column is sending us something like 198655T. We need to accept only the character which is usually the last in the string and the rest to be filtered out. How do I do it...?

Thanks much.

MJ
amsh76
Charter Member
Charter Member
Posts: 118
Joined: Wed Mar 10, 2004 10:58 pm

Post by amsh76 »

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

Post by ray.wurlod »

I believe the Right() function is more intuitively obvious.

Code: Select all

Right(InLink.Col1, 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.
DS_MJ
Participant
Posts: 157
Joined: Wed Feb 02, 2005 10:00 am

Post by DS_MJ »

ray.wurlod wrote:I believe the Right() function is more intuitively obvious.

Code: Select all

Right(InLink.Col1, 1)
Hello:

Thank you.

Code: Select all

Right(InLink.Col1, 1)
works.

Thanks,
MJ
Post Reply