Specifying Tab Delimiter Symbol in DCOUNT()

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
naserumak
Participant
Posts: 4
Joined: Thu Nov 02, 2006 9:32 am
Location: chennai

Specifying Tab Delimiter Symbol in DCOUNT()

Post by naserumak »

Hai EXperts,

i have Tab Delimited Record and i Have To Count No.of Delimiters in that record.I am Using DCOUNT() Function.

But, My Problem Is HOW TO SPECIFY TAB SYMBOL IN the DCOUNT FUNCTION.
Kumarez
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,
Welcome Aboard :D !!!
Try with '\t'.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Also Try with Char(9)

Code: Select all

DCount(Record,Char(9))
naserumak
Participant
Posts: 4
Joined: Thu Nov 02, 2006 9:32 am
Location: chennai

Post by naserumak »

'\t' It's Not Working.

Dcount(Records,Char(9)) Its Working Fine.


Thank U Balaji
Kumarez
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

If your aim is to find the no of fields in a record then we can use.....

awk -F'\t' 'END {print NF}' testfile


Not sure about the DCOUNT()

Regards,
Regards,
Shree
785-816-0728
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Do you think this topic can be marked as resolved?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply