0

I have a file where I have multiple delimiters. I want to split based on delimeters and load it into a table in teradata. Please see below example:

38722719ÇI67.9Ç1Ç33984374Ç
47293377ÇZ11.51Ç1Ç37073044Ç
86809068ÇM54.2Ç1Ç49239923Ç
86811065ÇM54.2Ç1Ç49240429Ç

Here my two delimters are 'Ç' and 'Ç'

Whenever there is a single delimiter I have specified my delimiter in my mload script using 'format vartext'

FORMAT VARTEXT 'Ç'

But is there a way we can use multiple delimiters to split and load it into a table? I have tried separating the two delimiters with comma and it didn't work. Can you please throw some light?

Thiyagu
  • 85
  • 1
  • 12
  • Don't think so. But I think you can specify one of your delimiters in mload, and then split on the other delimiter using `STRTOK` in the insert part of the script. Or you could use sed to replace all occurences of 'Ç' with 'Ç'. – Andrew Apr 23 '20 at 13:49
  • @Andrew Thanks for the info. I used _Sed_ command which easily resolved my problem. – Thiyagu Apr 24 '20 at 16:29

0 Answers0