Page 1 of 1

String format

Posted: Thu May 26, 2005 1:31 pm
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

Posted: Thu May 26, 2005 2:01 pm
by amsh76
substring or []...

Posted: Thu May 26, 2005 5:05 pm
by ray.wurlod
I believe the Right() function is more intuitively obvious.

Code: Select all

Right(InLink.Col1, 1)

Posted: Fri May 27, 2005 8:49 am
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